0

Python code help. So I was triying to do a average calculator that could use a input variable to determine a infinite(not sure)

mount_of_grades = int(input ('Amount of grades: ')) name_of_the_student = input('Name of the student: ') grades_student = input(amount_of_grades * 'Grade: ') average_grade = grades_student / amount_of_grades print ('The average grade of {} is {}.'.format(name_of_the_student,average_grade))

22nd Jul 2022, 6:20 PM
Goldzin
Goldzin - avatar
2 odpowiedzi
+ 1
Save code in python playground here and share link. Otherwise it's difficult to debug and find errors, especially identation mistakes... amount_of_grades is undefined..
22nd Jul 2022, 6:36 PM
Jayakrishna 🇮🇳
0
oh ok
22nd Jul 2022, 6:48 PM
Goldzin
Goldzin - avatar