I think you have an old version of python. try upgrading to the latest version of python. F-string literals have been added to python since python 3.6. you can check more about it here
More Related Contents:
- How does Python 2 compare string and int? Why do lists compare as greater than numbers, and tuples greater than lists?
- What is the best way to remove accents (normalize) in a Python unicode string?
- How to run multiple Python versions on Windows
- Nested arguments not compiling
- How to postpone/defer the evaluation of f-strings?
- Python unexpected EOF while parsing
- f-strings vs str.format()
- Why does Python print unicode characters when the default encoding is ASCII?
- Python cannot handle numbers string starting with 0. Why?
- Why is ” > 0 True in Python 2?
- How to use a multiprocessing.Manager()?
- Converting “yield from” statement to Python 2.7 code
- Using print() (the function version) in Python2.x
- Defining “boolness” of a class in python
- How can I get 2.x-like sorting behaviour in Python 3.x?
- How to print a percentage value in python?
- Safest way to convert float to integer in python?
- Python ascii utf unicode
- How to select a directory and store the location using tkinter in Python
- Handling \r\n vs \n newlines in python on Mac vs Windows
- Why can’t attribute names be Python keywords?
- Why do I get the syntax error “SyntaxError: invalid syntax” in a line with perfectly valid syntax?
- Determine if 2 lists have the same elements, regardless of order? [duplicate]
- How to read a CSV file from a URL with Python?
- Command-line input causes SyntaxError
- Ampersand “&” syntax error running any Python script in VSCode?
- Why do parentheses in a lambda function cause syntax error on Python 3? [duplicate]
- TypeError: super() takes at least 1 argument (0 given) error is specific to any python version?
- How can I use f-string with a variable, not with a string literal?
- What arguments does Python sort() function have?