Oops, try again. median([1]) returned [1] instead of 1

Not entirely understanding the error message. Is my value returning as a string instead of an integer?

```
def median(numbers):
total = 0
sorted(numbers)
if len(numbers) % 2 == 0:
total = len(numbers) / 2
numbers.remove(total)
total = total + len(numbers) / 2
total = total / 2.0
print total
elif len(numbers) == 1:
total = numbers
print total
else:
total = len(numbers) / 2.0
print total
return total
```