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}
