NumPy Statistics
Create a NumPy array from the given numbers and print its mean, median, and standard deviation.
Approach: np.array(numbers) builds the array; np.mean(), np.median(), and np.std() compute each statistic directly.
Input: One line: 10 space-separated numbers.
Output: Three lines: Mean: <value> Median: <value> Standard Deviation: <value> each rounded to 2 decimal places.
23 45 12 67 34 89 21 45 33 56
Mean: 42.50 Median: 39.50 Standard Deviation: 22.12
- Exactly 10 numbers are given.
Hint 1
np.mean(arr), np.median(arr), and np.std(arr) compute each statistic in one call.
Hint 2
Format every value with :.2f so results stay consistent regardless of how many decimal places NumPy computes internally.
np.array(numbers) converts the input into a NumPy array, and np.mean()/np.median()/np.std() compute each statistic directly — no manual loop or formula needed, just the vectorized built-ins from the notes. Formatting each with :.2f keeps the output exact and reproducible.