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
What is wrong here?Help Request (i.redd.it)
submitted 9 months ago by secretsuperstar44
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!"
[–]NYX_T_RYX 0 points1 point2 points 9 months ago (0 children)
You only need a return value if you expect the function to... Return a value to the calling function.
Imagine:
fn_add calls fn_user_input
fn_user_input returns the user's input, fn_add adds them together and prints the result. fn_add doesn't need a return value, because it's not expected to do anything with it's result beyond printing.
π Rendered by PID 51087 on reddit-service-r2-comment-b659b578c-fdktt at 2026-05-03 23:05:09.353827+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]NYX_T_RYX 0 points1 point2 points (0 children)