FAQ: Control Flow - Boolean Operators: or


#1

This community-built FAQ covers the “Boolean Operators: or” 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 Operators: or

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!


#3

I noticed the same thing.


#4

Please check the instructions of the exercises for the boolean part. There are some missing inputs


#5

Had the same issue, I’ve just issued a bug comment for exercise 7, 8 and 9. Hopefully they will it and fix it shortly.


#6

codeacademy_lessons_7_8_9 != premium_content

lol


#7

I think the exercise should have asked for either type() or bool() function

statement_two =(9 + 5 <= 15) or (7 != 4 + 3)
statement_two =(9 + 5 <= 15) or (7 != 4 + 3)
print(type(statement_two))
print(bool(statement_two))
bool(statement_two)

And I agree re: bugs. codecademy does a TERRIBLE job of responding to bug reports! Haven’t they ever heard of JIRA or similar?


#8

I’m going through these lessons now and they work fine for me. Could someone post a screenshot of what’s wrong? I don’t understand what you mean by the instructions for the chapters being incomplete :frowning_face:


#9

When given a visual example to evaluate, we are expected to do it in our head, using what we understand about operator precedence and order of operations, and about OR. We are NOT to use the interface to solve those two expressions.

Look, and evaluate, then write only the outcome as you have determined it. If you get it wrong, then find out why.

It is imperative that we get this concept straight in our thinking, and the only way to do that is to think, not tap keys.

Which makes no sense whatever. The lesson is clearly about OR and does not reference type in any way, nor does it even mention bool.


#10

I have looked at the activity again and it seems that the issue has been resolved.