Medium
Statistics Function
Write
stats(nums) returning (mean, median) where median is the middle value of the sorted list, or the average of the two middle values. Print both with 1 decimal.Input
One line of integers.
Output
mean median
Sample 1
Input
1 2 3 4
Output
2.5 2.5
Sample 2
Input
5
Output
5.0 5.0
Output appears here