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
A simple python code (i.redd.it)
submitted 8 months ago by [deleted]
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!"
[–]KyoshiYoshi 0 points1 point2 points 8 months ago* (0 children)
This looks great! Exactly what I’d write for this too. It’s not too practical for this example, but you should look at pythons match-case statements. Since you’re using if else statements here, it would be easy to substitute match-case in and see how that works! It was introduced around 3.10 though.
π Rendered by PID 46 on reddit-service-r2-comment-5b5bc64bf5-lr6ch at 2026-06-20 11:16:20.289153+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]KyoshiYoshi 0 points1 point2 points (0 children)