In the hint it mentions “cutting the length of the array in half”

When I run the first bold line it doesn’t affect the length of a list at all, and when I use the second it says “list indices must not be floats”

What are the problems with what I’ve written? I would appreciate any feedback

```
def median(Lst):
sortLst = sorted(Lst)
if len(sortLst) % 2 == 0:
**len(sortLst) / 2.0** # halve length of list
**sortLst = sortLst[len(sortLst) / 2.0]**
print sortLst
midNums = (sortLst[-1] + sortLst[-2]) / 2.0 # averages the middle numbers
return midNums
else:
len(sortLst) / 2.0
return sortLst[-1]
```