monica_b1998@lemmy.world to Python@programming.dev · 18 days agoPython String Formatting: f-strings vs .format() vs %slicker.meexternal-linkmessage-square15linkfedilinkarrow-up142arrow-down10
arrow-up142arrow-down1external-linkPython String Formatting: f-strings vs .format() vs %slicker.memonica_b1998@lemmy.world to Python@programming.dev · 18 days agomessage-square15linkfedilink
minus-squareNotSteve_@lemmy.calinkfedilinkarrow-up3·17 days agoF-strings and .format() are two features I miss from Python whenever I’m writing stuff in another language. The syntax is just so minimal yet powerful
minus-squareNotSteve_@lemmy.calinkfedilinkarrow-up2·15 days agoGo mainly. fmt has some functions to do the same sort of formatting but I loved the minimal syntax in Python. JavaScript has a really nice syntax for it as well actually
F-strings and .format() are two features I miss from Python whenever I’m writing stuff in another language. The syntax is just so minimal yet powerful
in what language?
Go mainly.
fmthas some functions to do the same sort of formatting but I loved the minimal syntax in Python. JavaScript has a really nice syntax for it as well actuallyreasonable answer