Oct-31-2019, 05:31 AM
(This post was last modified: Oct-31-2019, 05:32 AM by Gribouillis.)
In the format() syntax, one escapes curly braces by doubling them. It should probably be
s=f'{a} "{{"'
what's really wrong with this f-string?
|
Oct-31-2019, 05:31 AM
(This post was last modified: Oct-31-2019, 05:32 AM by Gribouillis.)
In the format() syntax, one escapes curly braces by doubling them. It should probably be
s=f'{a} "{{"'
|
|
Messages In This Thread |
what's really wrong with this f-string? - by Skaperen - Oct-31-2019, 02:02 AM
RE: what's really wrong with this f-string? - by Gribouillis - Oct-31-2019, 05:31 AM
|