LearnPy Hub
← NumPy problems
Medium

Standardise With z-Scores

Read numbers and print each one's z-score (x − mean) / std rounded to 2 decimals, as a list. (All numbers are not equal.)

Input

Numbers separated by spaces.

Output

A Python list.

Sample 1

Input
2 4 4 4 5 5 7 9
Output
[-1.5, -0.5, -0.5, -0.5, 0.0, 0.0, 1.0, 2.0]

Sample 2

Input
1 2
Output
[-1.0, 1.0]
solution.py
Output appears here
Standardise With z-Scores · Python practice problem · LearnPy Hub