I dont get it, after putting 2.0 instead of 2, also i am getting same error

"Oops, try again. median([4, 5, 5, 4]) returned 5.0 instead of 4.5"

```
def median(lst):
lst=sorted(lst)
if lst==[1]:
med=1
else:
if len(lst)%2!=0:
med=lst[(len(lst)-1)/2]
else:
med=(lst[len(lst)/2]+lst[(len(lst)/2)+1])/2.0
return med
```

please suggest a solution