Standard deviation


#1

code:
def grades_std_deviation(scores):
varia = grades_variance(scores)
return (varia ** 0.5)
print grades_std_deviation(grades)

output:
334.071005917
18.2776094147
None

error:
Oops, try again. grades_std_deviation(2.1875) raised an error: 'float' object is not iterable


#3

Sorry for deleting my previous post, I was unsure of reply. Are you sure your grades_variance thing takes proper argument? I used another one in my code and it seems to work.

Also, are you sure you included the variance thing in the proper place of the code? Check the steps of the instruction.


#4

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