Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Median by TovarischZhukov
def checkio(lstInput):
pos = len(lstInput) / 2
lstInput.sort()
return (lstInput[pos] + lstInput[pos - 1]) / 2.0 if len(lstInput) % 2 == 0 else lstInput[pos]
Dec. 2, 2015