Question: Can someone help in debugging? I cannot get my average to work. #This program will help determine the average of your scores for the night
Can someone help in debugging? I cannot get my average to work.
#This program will help determine the average of your scores for the night at bowling
def Message(): print("Please enter in all 3 of your bowling games and we will calculate your average.") print()
def BowlingGames(): scores = int() for i in range(3): print("Enter bowling game #", i + 1,":") scores = input()
#end loop def DetermineAverage(): average = 0.0 sum1 = 0 for i in range(len(scores[i])): sum1 += int(scores[i]) average = sum1/3 #Print average print("Your average for the night was: ", average) print() print("Thank you for using our bowling calculator.") return average Message() BowlingGames()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
