HELP! Exam Statistics, Review


#1

This is my code for Review on Exam Statistics.

return total
print grades_sum(grades)

def grades_average(grades):
sum_of_grades = grades_sum(grades)
average = sum_of_grades / float(len(grades))
return average
print grades_average(grades)

def grades_variance(grades):
variance = 0
for g in grades:
variance += ((grades_average(grades) - g) ** 2)
print grades_variance(grades)

def grades_std_deviation(variance):
return (variance) ** 0.5
variance = grades_variance(grades)
print grades_std_deviation(variance)
return variance / len(grades)
print grades_std_deviation(variance)

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.

THANK YOU!!!

Replace this line with your code. 



#2

Never mind. Figured out issue


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.