+ 2
Why is the SyntaxError: invalid syntax being displayed on the screen?
I'm doing the program as follows spam=7 if spam>7: print ("greater than") print ("End") Then as I press the enter the SyntaxError: invalid syntax messege is displayed
3 ответов
+ 2
There isn't any problem with this code, please check it if there is any random character you didn't see
+ 1
Your could compiles without error and prints "End" for me.
+ 1
The code is not working on Python 3.7 version but it works fine on version 3.6