3/13 Whats Wrong with my code


#1

a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
for numbers in a:
if a % 2 == 0:
print "even"
else:
print "Uneven"
??? :question:


#2

@draqq,
You have defined a list under the variable a

With for numbers in a
you will pickup every =element= of the a-list
and assign this =element-Value= to the variable numbers

It is this numbers variable which you have to use in your IF ELSE statement.......