Python error in code written using 'or' boolean operator ? Please help

You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

Sometimes the learning environment can throw out some really weird errors that might be easier to catch on your own IDE. In this case it’d probably be a NameError under normal circumstances so take a very close look at your (variable) names.

If you follow the link included in your post you can find a way to format code on the forum so that you don’t have to include a screenshot which might save you a bit of time and it makes it easier to check.

1 Like

Also, True and False are not strings, so they don’t need quotes.

True and False
False. :wink: