Oops, try again. median([4, 5, 5, 4]) returned 4 instead of 4.5

For my understanding , code works as expected.

But i am not be allowing to go to next session.

I tried in my spider IDE and it works as expected

```
def median(n):
n = sorted(n)
print (n)
for i in range(len(n)):
if len(n)%2 >0:
x = (len(n)//2)
return n[x]
else:
y = len(n)//2
x = (n[y]+n[y-1])/2
return x
print (median([4,5,5,4]))
Output from IDE:
=============
runfile('C:/Users/admin/.spyder-py3/median.py', wdir='C:/Users/admin/.spyder-py3')
[4, 4, 5, 5]
4.5
```