I get the error: Oops, try again. median([4, 5, 5, 4]) returned 4 instead of 4.5

```
def median(l):
sort = sorted(l)
if len(sort) == 1:
return sort[0]
if len(sort) % 2 == 0:
mid1 = (len(sort) / 2) - 1
mid2 = len(sort) / 2
median = (sort[mid1] + sort[mid2]) / 2
return median
else:
away_from_mid = len(sort) // 2
return sort[away_from_mid + 1]
```