Chaos icon indicating copy to clipboard operation
Chaos copied to clipboard

SyntaxError

Open wi-wi opened this issue 3 years ago • 2 comments

installed all libraries and get this error while logistic_interactive.py was left unchanged. Editing the 3rd " moves the error to the next triple " occurence.

terminal:

h@h:/media/h/3tb/www/Chaos$ python logistic_interactive.py File "logistic_interactive.py", line 74 """ ^ SyntaxError: invalid syntax

wi-wi avatar Apr 28 '21 14:04 wi-wi

What's your python version? If it's pre Python-3.6 it's probably because format strings were only introduced in 3.6

If 3.6+, try checking that all strings are either "string value" or """string value""" (always either one or three quotes on both sides)

jonnyhyman avatar Apr 28 '21 17:04 jonnyhyman

Same issue with me as well and I’m using python 3.9

Wayne-Huang0 avatar Aug 19 '21 02:08 Wayne-Huang0

I get the same issue and I tried it with every other python version (3.6+)

pravin1707 avatar Dec 29 '22 05:12 pravin1707

I can't replicate this... All I can say is go through the code and confirm all quotes are closed and all curly braces are formatted correctly

jonnyhyman avatar Feb 08 '23 19:02 jonnyhyman