monica_b1998@lemmy.world to Python@programming.dev · 2 months agoPython String Formatting: f-strings vs .format() vs %slicker.meexternal-linkmessage-square14linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkPython String Formatting: f-strings vs .format() vs %slicker.memonica_b1998@lemmy.world to Python@programming.dev · 2 months agomessage-square14linkfedilink
minus-squareBadabinski@kbin.earthlinkfedilinkarrow-up0·2 months 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/