- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
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?
wait till you see
if __name__ = "__main__": main() `
Luckily Python is one step ahead:
Also TIL that
:=
is a thing in Python.