Great job computing the variance! The last statistic will be much simpler: standard deviation.
The standard deviation is the square root of the variance. You can calculate the square root by raising the number to the one-half power.
Define a function,
grades_std_deviation, that takes one argument called
return the result of
variance ** 0.5
After the function, create a new variable called
variance and store the result of calling