learnbyexample@programming.dev to Python@programming.devEnglish · 19 days agoPython f-string quizfstrings.wtfexternal-linkmessage-square15linkfedilinkarrow-up176arrow-down12
arrow-up174arrow-down1external-linkPython f-string quizfstrings.wtflearnbyexample@programming.dev to Python@programming.devEnglish · 19 days agomessage-square15linkfedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up29·19 days 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·19 days 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.