Hi when i run the code i get the following error
Oops, try again. grades_variance([4, 5, 5, 7, 8, 8, 2, 6, 2]) returned 0.1659807956 instead of the expected: 4.6172839506
I am really confused on what i have done wrong!!
any help is greatly appreciated
def grades_variance(scores): average = grades_average(scores) variance = 0 for score in scores: variance += (average - score) ** 2 a = variance / len(scores) return a print grades_variance(grades)