Question
The following program is supposed to find the average of five grades. 1 sum = 0 2 for x in range(0,5): 3 temp = float(input("Grade: ")) 4 sum = temp + 1 5 6 grade = sum / 5 7 print("Grade = " + str(grade)) But the average is not printing out correctly. A sample run looks as given below. Grade: 100 Grade: 67 Grade: 89 Grade: 92 Grade: 81 Grade = 16.4 ** Process exited - Return Code: 0 ** Press Enter to exit terminal To find the error which variable would be most appropriate to print out to debug the program? (1 point) Responses temp temp x x grade grade sum sum
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.