0

invalid syntax

File "<ipython-input-3-e7a2a01d420f>", line 2 elif not (1 + 1==3): ^ SyntaxError: invalid syntax

13th May 2018, 10:55 PM
wond
wond - avatar
1 Respuesta
+ 3
Given it is line 2, you made a mistake on line 1 or 2. To have an elif, it needs to be line 3 or beyond such as: if false: print("wrong") elif not (1 + 1==3):
13th May 2018, 11:36 PM
John Wells
John Wells - avatar