Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Stuck here. Greatly appreciate help! Done using python. The Python code listed below is supposed to ask the user for two game scores, total them

Stuck here. Greatly appreciate help! Done using python.

image text in transcribed

The Python code listed below is supposed to ask the user for two game scores, total them and calculate the average. It then will print the average. If the user enters 14 for game1 and 24 for game2, what will the output be? #Code to add two scores and get an average #declare variables game1 = float() game2 = float() total = float() average = float() #ask the user for the scores gamel = input("Enter Game l's score: ") game 2 = int(input("Enter Game 2's score: ")) #calculate the sum and average total = game1 + game2 average = total/2 #print out the average print("The average of the two scores is: ", average) The average of the two scores is: 19 The average of the two scores is: 13 Nothing there is a syntax error. Nothing there is a run time error

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

Students also viewed these Databases questions