Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 what's really wrong with this f-string?
#1
what's really wrong with this f-string? the quotes look right so it must be the backslash.
Output:
>>> a=432 >>> s=f'{a} "\{"' File "<stdin>", line 1 SyntaxError: f-string: unterminated string >>>
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote

Top Page

Messages In This Thread
what's really wrong with this f-string? - by Skaperen - Oct-31-2019, 02:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)