I'm trying to figure out whats wrong with my code on the "median" exercise in the "Practice makes perfect"...

It keeps telling me I'm not getting the right median value even though the console looks like it's printing the correct number. Can anyone help? I added some extra unnecessary stuff to help me see whats going on but I didn't think any of that was interfering. Here is my code:

numbers = []

count = int(raw_input("how many numbers in your list? "))

print "input ", count, " numbers in any order to get the median number"

counter = count

for i in range(count):

counter -= 1

print "numbers left:", counter+1

numbers.append(int(raw_input()))

if counter == 0:

print "your list ", numbers

def median(numbers):

numbers.sort()

new_numbers = []

for i in numbers:

new_numbers.append(i)

print "sorted ", new_numbers

print "median: "

if count % 2 != 0:

return new_numbers[int(len(new_numbers)/2)]

else:

return ((new_numbers[int((len(new_numbers)/2)-1)]+new_numbers[int(len(new_numbers)/2)])/2.0)

print median(numbers)