Why doesn't this work?


Why this doesnt work? could you explain me please?

def grades_variance(scores):
average = grades_average(scores)
variance = 0
for score in scores:
variance += (average - score) **2
return variance
result = variance/len(scores)
return result

7/9 The Variance: Error and I am not sure why

@scriptpro28053 ,

What specific evidence did you observe that indicates that it does not work?

When you post code, please format it so that we can see essential details, such as indentation. See How do I format code in my posts?.


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