Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
statistics.median solution in Creative category for Median by blabaster
def checkio(data):
"""
in python 3.4 became standard module named "statistics"
try this "creative" one-line-solution on your local comp:
from statistics import median as checkio
"""
i = len(data) // 2
data.sort()
return (data[i] + data[-i - 1]) / 2
Dec. 31, 2015
Comments: