Skip to content
Advertisement

Python – invalid syntax in conditions

I am studying how to use conditions in Python and I have no idea why on earth there’s a syntax error in my code, when I have just written normal condition: else y>200:

Here is my code:

JavaScript

Advertisement

Answer

The

JavaScript

should be

JavaScript

You can look into the documentation for if statements: if Statements

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement