I'm always .5 off with my final answer. Where am I not correctly making my number an integer?

In the example [4,5,5,4] I expect 4.5, but it produces 4

```
mylist = [1,1,2]
def median(mylist):
mylist = sorted(mylist)
listlength = len(mylist)
if listlength % 2 == 0:
return (mylist[int(listlength/2 + .5)] + mylist[int(listlength/2 - .5)]) / 2
else:
return mylist[int(listlength/2 + .5)]
```