- cross-posted to:
- programmer_humor@programming.dev
- cross-posted to:
- 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?
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?
the default function is
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 ↩︎