Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Median by jarnsmidur
def checkio(data):
data.sort()
middle = int(len(data)/2)
if len(data)%2:
return data[middle]
return (data[middle-1]+data[middle])/2
Jan. 10, 2016