I can't seem to figure out why my code isn't working. Whenever I run it, it gives me the error message:

## median([1, 34, 1, 6, 8, 0]) returned 7.0 instead of 3.5

This doesn't make sense to me since it works for things like [4, 5, 5, 4]. Any help would be greatly appreciated.

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