Standard Deviation


def grades_std_deviation(variance):
variance = grades_variance (grades)
deviation= float ( variance **0.5)
return deviation
#variance = grades_variance (grades)
print grades_std_deviation(grades)

This code gives me an error of : Oops, try again. grades_std_deviation(0.0) returned 2.3046857681 instead of the expected: 0.0.

Please help if you can.


Uncomment the line:
#variance = grades_variance (grades)

And when you print the return of grades_std_deviation() use the parameter variance instead of grades.

Also, in your grades_std_deviation() function, remove the line where you assign the variance variable as it's already been done.

If this solved your question, please be so kind as to mark this answer as your solution. Thanks :slight_smile:


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