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