I’m really confused.

If I have

```
def median(numlist):
sorted(numlist)
print numlist
median([1,2,3,4,5,6,7,8,9,10])
```

It all works out, but the second I do anything with the numlist, such as…

```
def median(numlist):
sorted(numlist)
if len(numlist) % 2 == 0:
print "It's even"
#Note: (len(numlist) / 2) should give me one integer to the right of the halfway point
median([1,2,3,4,5,6,7,8,9,10])
```

And THIS returns

```
File "python", line 10
median([1,2,3,4,5,6,7,8,9,10])
^
SyntaxError: invalid syntax
```

However, the line median([1,2,3,4,5,6,7,8,9,10]) is the exact same in the two cases. Is my syntax really incorrect if it worked with the barebones test above?