Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
format strings syntax error
#2
You must be using a python version before 3.6. f-strings as in your first snippet were introduced in python 3.6
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
format strings syntax error - by VikramSuh - Sep-06-2018, 11:03 AM
RE: format strings syntax error - by buran - Sep-06-2018, 11:07 AM
RE: format strings syntax error - by VikramSuh - Sep-06-2018, 11:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  World Clock syntax error OscarBoots 1 243 May-03-2024, 05:20 AM
Last Post: snippsat
  Syntax error for "root = Tk()" dlwaddel 15 1,388 Jan-29-2024, 12:07 AM
Last Post: dlwaddel
Photo SYNTAX ERROR Yannko 3 468 Jan-19-2024, 01:20 PM
Last Post: rob101
  An unexplainable error in .format statement - but only in a larger piece of code? ToniE 4 758 Sep-05-2023, 12:50 PM
Last Post: ToniE
  Trying to understand strings and lists of strings Konstantin23 2 837 Aug-06-2023, 11:42 AM
Last Post: deanhystad
  Syntax error while executing the Python code in Linux DivAsh 8 1,792 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  Code is returning the incorrect values. syntax error 007sonic 6 1,319 Jun-19-2023, 03:35 AM
Last Post: 007sonic
  syntax error question - string mgallotti 5 1,388 Feb-03-2023, 05:10 PM
Last Post: mgallotti
  Syntax error? I don't see it KenHorse 4 1,355 Jan-15-2023, 07:49 PM
Last Post: Gribouillis
  Syntax error tibbj001 2 963 Dec-05-2022, 06:38 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020