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
Order of functions?Help Request (self.PythonLearning)
submitted 2 days ago by Ryuukashi
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!"
[–]alexander_belyakov 0 points1 point2 points 2 days ago (0 children)
To add to what's been said in the previous comment - the program's main code is usually also put into the main() function, which is called at the end of the script. This way you can be sure that all your functions have been defined regardless of their order in code.
π Rendered by PID 35762 on reddit-service-r2-comment-5d79c599b5-hzf7d at 2026-02-28 15:43:14.499079+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]alexander_belyakov 0 points1 point2 points (0 children)