Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Uncategorized category for Median by UFO665
def checkio(data):
lst = sorted(data)
if len(lst) % 2 == 1:
return lst[len(lst) / 2]
else:
pos = len(lst) / 2
return float(lst[pos] + lst[pos-1]) / 2
Dec. 1, 2015