https://www.codecademy.com/courses/python-intermediate-en-rCQKw/2/5?curriculum_id=4f89dab3d788890003000096#

My code is showing syntax error. i can not find what's wrong

```
def median(a):
sorted(a)
if len(a)==1:
median = a[0]
elif len(a)%2==0:
median = float(((a[len(a)/2] + a[(len(a)/2)-1])/2)
else:
median = int(a[len(a)/2])
return median
```