Medium
Quartiles
Read numbers and print the 25th, 50th and 75th percentiles with
np.percentile, each with 2 decimals, on one line, then the IQR (Q3 − Q1) with 2 decimals.Input
Numbers separated by spaces.
Output
Two lines.
Sample 1
Input
1 2 3 4 5 6 7 8
Output
2.75 4.50 6.25 3.50
Sample 2
Input
5
Output
5.00 5.00 5.00 0.00
Output appears here