Standard Deviation
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
1 <= len(nums) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Swap Rows and ColumnsBeginner
- Third QuartileBeginner
- Votes TallyBeginner
- Add Column OffsetsEasy
- Age GroupsEasy
- All DifferentEasy
- Average of Chosen RowsEasy
- Average of Top ThreeEasy