Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Median by lancelote
def checkio(data):
length = len(data)
data.sort()
if length % 2 == 0:
return (data[length//2] + data[length//2 - 1])/2
else:
return data[length//2]
Aug. 13, 2015