Hi! Please explain, where is mistake? Everything works fine on my own interpretor (Python 3.4), but here not. Why?
def checkio(data):
data.sort()
if len(data) % 2 == 1:
return data[len(data)//2]
else:
return (data[len(data)//2-1]+data[len(data)//2])/2
Created at: 2014/12/14 13:22; Updated at: 2015/10/06 14:30