Python:Variance


#1

Hello friends,I need your help for:
https://www.codecademy.com/courses/python-intermediate-en-7mgOa/2/1?curriculum_id=4f89dab3d788890003000096
following is my code:

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

Please tell me my error.Thanks in advance


#2

Please describe the problem before asking for the cause

What does your function do differently from what you think it should do? What stops you from fixing that? What information are you missing?


#3

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