HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 9 months agoPython needs an actual default functionlemmy.mlimagemessage-square126linkfedilinkarrow-up1597arrow-down122file-text
arrow-up1575arrow-down1imagePython needs an actual default functionlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 9 months agomessage-square126linkfedilinkfile-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-squareAvicenna@lemmy.worldlinkfedilinkarrow-up1·edit-28 months agoyea I also couldnt get the formatting to work right, triple quotes kept turning things into accented letters, so I gave up. and also := also known as the walrus operator is very fun and sometimes very convenient to use
yea I also couldnt get the formatting to work right, triple quotes kept turning things into accented letters, so I gave up.
and also := also known as the walrus operator is very fun and sometimes very convenient to use