What does this error message mean?


#1


Hello,
I am halfway through writing my code, but before I kept on getting error messages. I am trying to understand this one but I can't. What does it mean? (Ignore my code - I edited it after I got the error message.)



Replace this line with your code.


#2

It for sure means there is a problem with the code.

if s == "yes" or "Y"

is missing a colon to start the block, and is always going to be true since 'Y' evaluates to True (a non-empty string state).


#3

Yes, I saw that as well - oops:hushed:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.