I am trying to list all odd and even numbers. I have it but it is dropping the 9 in the output.

numbers = [1,2,3,4,5,6,7,8,9]

listEven = []

listOdd = []

for numbers in range(1, len(numbers)):

if numbers % 2 == 0:

listEven.append(numbers)

else:

listOdd.append(numbers)

print(listOdd)

print(listEven)

Output:

[1, 3, 5, 7]

[2, 4, 6, 8]

There should be a 9 in the first list. Please help me figure out what I am doing wrong.

Thanks!