I am getting the error: Oops, try again. median([1]) returned [] instead of 1

Not sure what I am doing wrong, please help.

```
def median(crazy):
result = []
order = sorted(crazy)
total = len(order)
middle = total/2
if total%2 != 0:
result == order[middle]
elif total == 0:
result == crazy[0]
else:
result == (order[middle]+order[middle+1])/2.0
print result
return result
```