- cross-posted to:
- programminghumor@lemmy.world
- programmer_humor@programming.dev
- cross-posted to:
- programminghumor@lemmy.world
- programmer_humor@programming.dev
Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?
There isn’t a default function. Module-level code is outside of any function[1].
https://docs.python.org/3/tutorial/modules.html#more-on-modules ↩︎