15

On my compiler (not in codecademy) everything is ok, but here i have some problems:

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

returns the median of a row

```
def median(x):
x=sorted(x)
med=0
if len(x)%2!=0:
med=x[int((len(x)-1)/2)]
else:
med=(x[int((len(x)/2-1))]+x[int((len(x)/2))])/2
return med
```