What am i doing wrong or missing and why?

Error : Oops, try again. median([1]) returned [1] instead of 1

```
def median(lst):
lst = sorted([lst])
print lst
if len(lst) % 2 == 0:
med = (lst[len(lst) / 2] + lst[len(lst) / 2-1]) / 2
else:
med = lst[(len(lst)-1) / 2]
return med
print median([1, 2, 3, 4, 5, 6])
```