FAQ: Control Flow - Boolean Expressions


This community-built FAQ covers the “Boolean Expressions” exercise from the lesson “Control Flow”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science
Data Science

FAQs on the exercise Boolean Expressions

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


In this context the correct answer to “Cats are female dogs.” is “Yes”, and I have to ask: was calling cats bitches intentional?


You can only pass this if you pass off the fourth statement

Cats are female dogs

as “Yes” or “True” if you will.
Cats are, to my knowledge at least, not dogs. Irrelevant of their sex.
I can’t help but feel this is a bug.


The exercise relates to assertion versus opinion.

Cats are female dogs

is an assertion, so, “Yes”, it is a boolean expression.


I thought as much too, but it’s still very confusing regardless. When you go with “No”, it just says something along the lines of “Expected “Yes” on Statement Four”
Could’ve at least elaborated that it’s a boolean due to that, because my first thought was “We’re going with factual statements”.


The lesson text is fairly explicit, but brief as needs be. Cover this point in your review of the topic of what makes a statement a boolean, as opposed to an opinion.

It might rain tonight

has no definitiveness, so is therefore not answerable with True or False. It’s not a boolean.

It will rain tonight

has a definite aire of assertion about it, so is therefore a boolean.

We are not concerned with the veracity of the statement, only whether it can be definitely refuted or confirmed.