maths.average_median¶
Functions¶
|
|
|
Find median of a list of numbers. |
Module Contents¶
- maths.average_median.main()¶
- maths.average_median.median(nums: list) int | float ¶
Find median of a list of numbers. Wiki: https://en.wikipedia.org/wiki/Median
>>> median([0]) 0 >>> median([4, 1, 3, 2]) 2.5 >>> median([2, 70, 6, 50, 20, 8, 4]) 8
- Args:
nums: List of nums
- Returns:
Median.