```
def median(lis):
result = 0
tempLis = sorted(lis)
if (len(lis) % 2 == 0):
location = len(lis) / 2
result = (tempLis[location - 1] + tempLis[location]) / 2
else:
location = len(lis) // 2
result = tempLis[location]
return result
```

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

I cannot see the problem, can someone help me out?

Thanks in advance