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