Oops, try again. median([1]) resulted in an error: list indices must be integers, not float

I m assuming every odd number/2 will have .5 left behind , and it would make sense that I add .5 to round it up. is it?

```
def median(lst):
resutlt=0
while lst>0:
sorted(lst)
if len(lst)%2==0:
result=(lst[len(lst)/2-1]+lst[len(lst)/2+1])/2
else:
result=lst[len(lst)/2.0+.5]
return result
```