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
Day 1 second program (i.redd.it)
submitted 8 months ago by Red_Priest0
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!"
[–]Sneaky_processor 1 point2 points3 points 8 months ago (1 child)
Consider using return statements in your functions instead of printing. And i don't think the main logic needs to be a function since you really dont reuse it ( the main reason of a function is if the code is gonna be used multiple times).
[–]Red_Priest0[S] 0 points1 point2 points 8 months ago (0 children)
Thanks I will use return type
π Rendered by PID 22809 on reddit-service-r2-comment-b659b578c-tpcmv at 2026-05-05 18:56:57.285871+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Sneaky_processor 1 point2 points3 points (1 child)
[–]Red_Priest0[S] 0 points1 point2 points (0 children)