I have a variable called method, it's value is POST but when I try to run print(f"{method} method is used.") it keeps giving a syntax error at the last double quote and I can't find the reason on why it does this. I am using python 3.5.2.
-
This line is fine. The syntax error is most likely caused by a previous line, but Python is only detecting it on this line. Can you post the full code?Al Sweigart– Al Sweigart2017-03-25 02:40:44 +00:00Commented Mar 25, 2017 at 2:40
Add a comment
|