We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95a4957 commit 0eabdb5Copy full SHA for 0eabdb5
maths/average_median.py
@@ -1,6 +1,10 @@
1
-def median(nums):
+from typing import Union
2
+
3
4
+def median(nums: Union[int, float]) -> Union[int, float]:
5
"""
6
Find median of a list of numbers.
7
+ Wiki: https://en.wikipedia.org/wiki/Median
8
9
>>> median([0])
10
0
0 commit comments