HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 8 days agoPython needs an actual default functionlemmy.mlimagemessage-square160linkfedilinkarrow-up1756arrow-down129file-text
arrow-up1727arrow-down1imagePython needs an actual default functionlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 8 days agomessage-square160linkfedilinkfile-text
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?
minus-squareHiddenLayer555@lemmy.mlOPlinkfedilinkEnglisharrow-up24·edit-28 days agoHeard of it, was too lazy to do it that way. To be fair I now do it that way, but not when I was learning Python.
Heard of it, was too lazy to do it that way.
To be fair I now do it that way, but not when I was learning Python.