https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/2/5

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

find the median

```
def median(x):
a = sorted(x)
if len(a) % 2 == 0:
v = len(a) / 2
n = v - 1
end = (x[v] + x[n]) / 2.0
return end
else:
m = len(a)/2
return a[m]
```