I don't know what is the error, some one please help me


#1

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


#2

the error is plenty self explaining? You have two print keyword (line 5 and 6), take a guess which one you should remove


#3

then how the code will work? can u explain more clearly...


#4

remove the print on line 5? The exercise checks the amount of times the print keyword is in your script, it is twice while it should be one


#5

still it's showing error message -


#6

i would remove line 5 completely?

on line 4, after a if additional indent is required:

if condition:
   print "you need to indent more after if"

#7

thx but this is the right one


#8

i know? I said you should indent the line under your if condition


#9

mm cool bro :wink: & thx a lot.


#10