Conditionals & Control Flow


<Below this line, add a link to the exact exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
On Conditionals and Control Flow part 7(Or). It has me set bool_three equal to the result of 100**0.5 >= 50 or False. Both of the variables are False yet the only way I can pass this section is if i answer True. Seems to be a bug

<What do you expect to happen instead?>


bool_one = 2**3 == 108 % 100 or ‘Cleese’ == ‘King Arthur’ is True

bool_two = True or False is True

bool_three = 100**0.5 >= 50 or False is True

bool_four = True or True is True

bool_five = 1100 == 1001 or 3 * 2 * 1 != 3 + 2 + 1 is False

<do not remove the three backticks above>


You should not be using the is-operator, no bug here.

bool_fourty_seven = True


But how is 100**.5 >= 50 or False a True statement? Both variables are false


Oh I get it. I don’t need to include all the variables in my own code just the answers.


There are no variables in that expression unless you count True/False which I suppose you could because they can be assigned to. The whole thing is an expression; an expression can be multiple expressions combined by operators.

It does not evaluate to True, your confusion is likely related to the is-operator. If you did "False is False " then that expression is indeed True because False is indeed False, not just equal, but IS, it’s the same value, same object, that is what is tests and that’s not related to anything in this exercise.