Here is my code:
This is my error for this:
Oops, try again. You did not print the correct variance. Double-check your code and make sure you print the variance!
I think this should be correct.
def grades_variance(scores): n_av = grades_average(scores) variance = 0 for score in scores: variance += ((n_av - score) ** 2) total_var = variance / float(len(scores)) return total_var print grades_variance(scores)