If statement python

I have the following part of code with the following error. When I look this up on the internet it is mostly a problem of writing the if-statement incorrect. Unfortunately, I can’t see/find where I made the mistake.
Thanks in advance.


Without seeing the code, or the entire line 26 I’m going to take a guess that you might not have the correct amount of parenthesis on that line. I would look there first.

Thanks this seems to be the problem