[URGENT] Small Syntax Error, unknow why

Why is the screenshot located below pop up with “Unknown Syntax” when I try to run the code? I am not sure why, as I am following the syntaxes correctly, and without error.

I understand this sounds like a stupid question, but I am really confused and I have no idea why it is acting like this.

Please could somebody reply quick, thank you.

Repl link:
The Python Translator - Replit

Hi @ewan501 thanks for your question:

The interpreter is correctly highlighting your code error. There is an error here.

You have missed the colon ( : ) at the end of the IF statement.

1 Like

Scrap this, I found why.

This topic was automatically closed after 10 hours. New replies are no longer allowed.