This is my code and above is my error. What do I need to change?? It seems alright in my perspective.

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

Thank you for your help!

THIS IS WHAT I DID TO FIX IT!!! VVVVVV

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