HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 month agoPython needs an actual default functionlemmy.mlimagemessage-square35linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imagePython needs an actual default functionlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 month agomessage-square35linkfedilinkfile-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-squarefox [comrade/them]@hexbear.netlinkfedilinkEnglisharrow-up0·1 month agoI recall that Gondor very much needed a king to return, like it was a pretty big deal that returning as king to Gondor was a necessary deal. Gondor needed Aragorn to return as king. It’s all documented in the third book, The Return of the King.
minus-squaredavel [he/him]@lemmy.mllinkfedilinkarrow-up0·1 month ago$ python -c 'return "King"' File "<string>", line 1 SyntaxError: 'return' outside function $
minus-squarefox [comrade/them]@hexbear.netlinkfedilinkEnglisharrow-up0·1 month agoLike I’m trusting a snake to be honest
I recall that Gondor very much needed a king to return, like it was a pretty big deal that returning as king to Gondor was a necessary deal. Gondor needed Aragorn to return as king. It’s all documented in the third book, The Return of the King.
Like I’m trusting a snake to be honest