Apr-24-2019, 08:08 PM
print("test")Thats the code and it's saying invalid syntax.
Another thing that is giving me an invalid synatx is
print(" /")i'm using python 3.6.0.
Invalid Syntax when using print?
|
Apr-24-2019, 08:08 PM
print("test")Thats the code and it's saying invalid syntax. Another thing that is giving me an invalid synatx is print(" /")i'm using python 3.6.0.
Apr-24-2019, 08:19 PM
Are you sure there isn't a syntax error on the previous line?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures
Apr-24-2019, 08:19 PM
Neither of those should be giving invalid syntax, is there more code before this that could actually have the error.
Apr-24-2019, 08:38 PM
Update:
this is giving me invalid syntax now. print(10 % 3)
Apr-24-2019, 08:51 PM
You're not heeding advise, post code prior to your print statement.
It's likely that something as simple as a close parenthesis in the previous line of code is causing your syntax error. |
|