Oops, try again. median([4, 5, 5, 4]) resulted in an error: 'int' object is not iterable

```
def median(nos):
sort=sorted(nos)
for i in sort:
if i%2==0:
for k in i:
k=k/2
j=k+1
return int((k+(j+1))/2)
elif i==1:
return 1
else:
for k in i:
return int(k/2)
```