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!

A post was merged into an existing topic: Why am I getting the wrong response for statement 4?

4 posts were split to a new topic: Why am I getting the wrong response for statement 4?

Can I set a False boolean expression to be True?
for example
define (1 > 9) to be True

You can place not before the expression , and it will reverse the Boolean. For example:

x = (1 > 9) # evaluates to false

x = not (1>9) # evaluates to true

Yes, I understand that and thank you for the response. But (1 > 9) would still be False in that equation.
What I mean is set (1 > 9) to be True, so “not (1 > 9)” would be False
Is it possible to do that in the codes?

How come “Friday is the best day of the week.” is not a boolean expression? It can be answered by Yes or No.
If friday is not my best day of the week i can reply with No.