I can't see what is wrong with my code here...

```
def median(intlist):
sorted(intlist)
if len(intlist) == 1:
return intlist[0]
elif len(intlist) % 2 == 0:
a = len(intlist) / 2
b = a + 1
c = (intlist[b] + intlist[a]) / 2
return c
else:
a = (len(intlist) / 2) - 0.5
return intlist[a]
```