Unexpected syntax error

Hi,

I’m pretty new at python, but in my code there is an unexpected syntax error:

Thank you.

First, when posting code, post it as text. You cannot copy and paste text from a screenshot and also people who use a screenreader cannot see your code.

When you see “syntax error” at the start of a line, look at the line preceding it. Usually you are missing a closing parenthesis, as you are now.

2 Likes