Please help


@g4be hey!
quick question pls

the problem asks me to print only even numbers, and to do so i have to use a for, if/else sentence, here´s my code so far

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

but what can i put in that else so it won´t do anything?
i tried just printing some message but i got an error saying that only one print is accepted

thanks for the help


@eggbert21: In that case there's not a need to use and else nor another print, simply leave only the if statement there and it should work.


oohhh ok, thanks
i just thougt that the if/else expresison was that type of thing that in order for work you would need to use them both hehe