FunctionRacerProblemsRace

Standard Deviation

BeginnerNumPyPython

Return the population standard deviation of nums: the square root of the average of (x - mean) ** 2 over all numbers. Return a float. Hint: np.std.

Example 1

nums [2,4,4,4,5,5,7,9]
returns 2.0

The mean is 5, the average squared distance is 4, so the answer is 2.0.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems