learnbyexample@programming.dev to Python@programming.devEnglish · 1 month agoPython f-string quizfstrings.wtfexternal-linkmessage-square15fedilinkarrow-up179arrow-down12
arrow-up177arrow-down1external-linkPython f-string quizfstrings.wtflearnbyexample@programming.dev to Python@programming.devEnglish · 1 month agomessage-square15fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up29·1 month agoTo be fair this was quite wtf-free. Mostly just unimportant formatting subtleties and stuff you’d never write. Python definitely has bigger WTFs, like bool being an int, implicit bool conversion, implicit iteration of strings, etc.
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up7·1 month agoSure but that’s orthogonal to f-strings.
To be fair this was quite wtf-free. Mostly just unimportant formatting subtleties and stuff you’d never write.
Python definitely has bigger WTFs, like bool being an int, implicit bool conversion, implicit iteration of strings, etc.
Bool being an int was part of this.
Sure but that’s orthogonal to f-strings.