This is my code for Review on Exam Statistics.
sum_of_grades = grades_sum(grades)
average = sum_of_grades / float(len(grades))
variance = 0
for g in grades:
variance += ((grades_average(grades) - g) ** 2)
return (variance) ** 0.5
variance = grades_variance(grades)
return variance / len(grades)
This is the error that it keeps returning:
Oops, try again. grades_variance([2, 83, 73, 2, 48, 5, 62, 51, 23, 40, 21, 84, 55]) raised an error: maximum recursion depth exceeded
First: What does this mean?!
Second: Please help me figure out what is wrong with my code.
Replace this line with your code.