QUESTION IMAGE
Question
what is the first team name? hawks what is the second team name? mavericks did hawks win? type win or loss: win what was the final score? 98-87 what is hawkss star players name? joe miller what was hawkss coachs quote about the game? hes on fire right now # get names and other strings from user team1 = input(\what is the first team name?\
\) team2 = input(\what is the second team name?\
\) result = input(\did (team1) or (team2) win?\
\) # get player data from user # calculate player statistics using input data points = (2 - pointers 2) + (3 - pointers 3) + (free throws) shooting percentage = (2 - point attempts + 3 - point attempts) / 100 (2 - point attempts + 3 - point attempts) / 100 did (team1) or (team2) win?
Step1: Add team name input code
team1 = input("What is the first team name?
> ")
team2 = input("What is the second team name?
> ")
Step2: Add win status input code
result = input(f"Did {team1} win? Type win or loss:
> ")
Step3: Add final score input code
final_score = input(f"What was the final score?
> ")
Step4: Add star player input code
star_player = input(f"What is {team1}'s star player's name?
> ")
Step5: Add coach quote input code
coach_quote = input(f"What was {team1}'s coach's quote about the game?
> ")Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
The completed input section of the Python code will be:
# Get names and other strings from user
team1 = input("What is the first team name?
> ")
team2 = input("What is the second team name?
> ")
result = input(f"Did {team1} win? Type win or loss:
> ")
final_score = input("What was the final score?
> ")
star_player = input(f"What is {team1}'s star player's name?
> ")
coach_quote = input(f"What was {team1}'s coach's quote about the game?
> ")
# Calculate player statistics using input data
# Points = (2-pointers * 2) + (3- pointers * 3) + (free throws)
#shooting percentage = (2-pointers + 3 pointers) / (2-point attemps + 3-point attemps) * 100