```
def median(lst):
lst=lst.sort()
n=len(lst)
if n==1:
m=n
elif (n%2==0):
m=lst(n/2)+lst(n/2+1)
else:
m=lst(n/2)
return m
"""what is the wrong with this code"""
```

`Replace this line with your code.`