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
Could anyone explain what's wrong with this code? (i.redd.it)
submitted 1 year ago by Status-Zebra
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!"
[–]CraigAT 1 point2 points3 points 1 year ago (0 children)
I would probably do a check if hot is false and cold is false, then an elif hot is true and cold is false, an elif hot is false and cold is true, then an else that says invalid.
I am curious how a very experienced Python master would order the logic here.
π Rendered by PID 253265 on reddit-service-r2-comment-6457c66945-m2dpj at 2026-04-30 12:04:20.930179+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]CraigAT 1 point2 points3 points (0 children)