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