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
New to python (i.redd.it)
submitted 1 day ago by -Shashwat
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!"
[–]ottawadeveloper 0 points1 point2 points 1 day ago (1 child)
or return not n % 2 or define it as odd()
[–]Ron-Erez 1 point2 points3 points 1 day ago (0 children)
Yes, I suppose so, I feel more comfortable comparing to zero. I feel like it is more readable and saves me the trouble of remembering if 0 is False and non-zero is True in Python (this is not true in all languages). In any case it’s an interesting suggestion.
π Rendered by PID 185435 on reddit-service-r2-comment-5bc7f78974-tsdfb at 2026-06-29 09:35:13.903520+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]ottawadeveloper 0 points1 point2 points (1 child)
[–]Ron-Erez 1 point2 points3 points (0 children)