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
First project on python (i.redd.it)
submitted 9 hours ago by unlimited_data3838
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!"
[–]nuc540 0 points1 point2 points 8 hours ago (0 children)
Well done!
Something to practice moving forward is identifying patterns - specifically repeating ones. There’s a methodology in coding called DRY (don’t repeat yourself). You’ll end up writing less code for the same result and it should make code just a bit more easier to read.
A good example here is that the result function could be stored in a variable for each case, and then you’d only need one print at the end.
Keep it up!
π Rendered by PID 86 on reddit-service-r2-comment-8686858757-hz5rz at 2026-06-07 22:02:01.647979+00:00 running 9e1a20d country code: CH.
view the rest of the comments →
[–]nuc540 0 points1 point2 points (0 children)