STINNER Victor added the comment:
It already exists since Python 3.4:
https://docs.python.org/dev/library/statistics.html#statistics.median
Enjoy!
--
nosy: +vstinner
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracke
New submission from Ananthakrishnan A S :
add a function called 'median' that we can use like:
list=[1,2,3,4,5,6,7,8,9] # declaring list
median(list) #returns 5
--
components: Library (Lib)
messages: 360873
nosy: Ananthakrishnan A S
priority: normal
severity: normal
status: o