The Variance


#1

Hey someone help me.
Seems like my code is alright to me but it throwing off error

def grades_variance(scores)
average=grades_variance(scores)
variance=0
for score in scores:
variance = variance+(average-score)**2
new_variance =(variance/float(len(scores)))
return new_variance
print grades_variance(grades)

Error: Oops, try again. grades_variance([5]) raised an error: maximum recursion depth exceeded


#2

in your average variable you should store a call to your grades_average function and not the grades_variance one,


#3

Thanks mate solved it


#4