Exercise 10.3: Getting this error: "You can only use 1 print statement for this exercise!" even when i am using exactly one print statement!


Hello. I am stuck at this exercise.

Although my code shows correct output but still i get the error: "Oops, try again. You can only use 1 print statement for this exercise!"

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

Can anyone please help!


did you try after refreshing your browser?


Yeah. But it was of no use.


Screenshot attached now. Sorry i forgot to attach earlier :slight_smile:


Solved! i removed all commented lines and bingo! But why commented lines have to do anything with print statement? :confused:


your code is fine.it's not your fault.In your own environment you can write that :slight_smile:
Actully system checker checks how many print statement you've in the code.so being print word in your comment it counts that.
so here you can change the word from print to Print.


Got it! Thankyou very much! :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.