monica_b1998@lemmy.world to Python@programming.dev · 4 days agoPython String Formatting: f-strings vs .format() vs %slicker.meexternal-linkmessage-square15fedilinkarrow-up142
arrow-up142external-linkPython String Formatting: f-strings vs .format() vs %slicker.memonica_b1998@lemmy.world to Python@programming.dev · 4 days agomessage-square15fedilink
minus-squareBadabinski@kbin.earthlinkfedilinkarrow-up8·4 days agoLuckily, there’s now t-strings (e.g. t"{buh}") for that use case (among many others). Here’s the PEP: https://peps.python.org/pep-0750/
Luckily, there’s now t-strings (e.g.
t"{buh}") for that use case (among many others). Here’s the PEP: https://peps.python.org/pep-0750/