Hi, I'm stuck here, because the func returns [1] instead of 1

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

I get the error "Oops, try again. median([1]) returned [1] instead of 1"

Here's my code. I even added an elif for the median([1]) and still gives this error:

```
def median(numbers):
my_list = []
for n in range(len(numbers)): #ERROR
for x in numbers:
if x == min(numbers) and len(numbers) > 1:
my_list.append(x)
numbers.remove(x)
break
elif len(numbers) == 1:
my_list.append(x)
return my_list
m = len(my_list)
if m % 2 == 0:
return my_list[((m/2) + (m/2 - 1)) / float(2)]
elif m == 1:
return my_list[0]
else:
return my_list[((m+1)/2) - 1]
print median([1, 4, 2, 7, 5, 3, 9])
```