|
|
Subscribe / Log in / New account

Formalizing f-strings

Formalizing f-strings

Posted Jan 18, 2023 0:23 UTC (Wed) by heiner (guest, #158880)
In reply to: Formalizing f-strings by nbecker
Parent article: Formalizing f-strings

There's still plain old %, which works well with dicts. You can do:

r'$x^2+\sigma^%(coef)i$' % {'coef': 4}


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds