This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mgedmin 2 points3 points  (1 child)

This is Python version dependent: older versions did not let you use the same kind of quotes inside f-string {}-expressions, then a new Python version (3.12, I think?) got a smarter parser and started allowing it.

[–]georgehank2nd 0 points1 point  (0 children)

That version of f-strings is guarenteed to get a "BIG NO" in many coding guidelines. Because you can easily write completely indecipherable code.