chris.259263 added the comment:
Hi Eric,
running the script from the terminal on my system (macOS, Python 3.6.2) gives
the same ErrorMessage as you stated.
The problem is the output "line 1".
Running the script from IDLE (3.6.2), the error points to the first line. And
in I
New submission from chris.259263:
Trying to run a script with a bug in a formated string literal (in the example
the ":" is missing) throws an "invalid syntax" error at the first expression of
the script.
Example:
import math
a = "a"
b = f"{a>2s}&