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