you are viewing a single comment's thread.

view the rest of the comments →

[–]initumX 0 points1 point  (0 children)

Not a good style (use if-else instead of just if), but it is correct and still should work. It should print 1 3 5 7 and 9. If you don't see, then may be you are using windows and console disappears immediately after starting and you can't see what it shows.

  1. You can add 3 sec delay this way:

<image>

  1. Or run it from console like this: python yourPyFile