▲ 232 ▼ Python needs an actual default function (lemmy.ml) submitted 1 year ago by HiddenLayer555@lemmy.ml to c/programmerhumor@lemmy.ml 34 comments fedilink hide all child comments 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?
[–] brunogron@feddit.nu 17 points 1 year ago If it's a one time script you don't even need the if... permalink fedilink source parent