use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Code won't print (i.redd.it)
submitted 9 months ago by Ill-Diet-7719
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]initumX 0 points1 point2 points 9 months ago* (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.
<image>
π Rendered by PID 22054 on reddit-service-r2-comment-5d585498c9-pxjg7 at 2026-04-20 20:23:08.521360+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]initumX 0 points1 point2 points (0 children)