+ 1
python 3.7.2 is showing 'syntax error' at line 3, why?
>>> if 10 > 5: print("10 greater than 5") print("Program ended") SyntaxError: invalid syntax
2 Respuestas
+ 2
Code looks legit. At least runs on Sololearn and I tested also on Python 3.7.1.
Make sure you don't have any invisible special characters (whitespace, tab) in the empty lines...
+ 1
You can see the right code. Hope it helps you.
https://code.sololearn.com/cU4Z2JOSC7UI/?ref=app