3/14


#1

can someone please tell me what i'm doing wrong?thank you

a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
for i in a:
    print i
for i in a:
    if a % 2 == 0:
        print i

#2

You can only use one print statement in this exercise, and since you only want the even numbers, i suggest removing this bit:

for i in a:
    print i

There is a problem in this line:

if a % 2 == 0:

if a (which is your array) %2 == 0, i thought you wanted your numbers in your array, to achieve this, use i