Why is it asking me to check the value of one of my booleans?

##Question
Why is it asking me to check the value of one of my booleans?

Answer

If you see a red error message saying something about the value of your booleans, be sure that your expressions are actually equal to the answer you expect!
It may help to print out your entire expression to see what it’s evaluating to if you think it’s equal to what’s being asked for. Take a look at the example below of printing an expression result:

# Make me false!
bool_false = not True or 10 >= 9
print bool_false

We see that it prints True to the console on the right! Now we can go back and revise our expression to make it false.
Keep this in mind for future lessons if you get stuck and feel your code is correct, as printing is often a very helpful debugging tool!

I know this is going to sound silly but i made a function so it could show me what i put as an answer.
Use it if it helps you understand where you made a mistake :slight_smile:
def show_me(bol):
if bol == True:
print(“True”)
else:
print(“False”)

show_me(bool_one)
show_me(bool_two)
show_me(bool_three)
show_me(bool_four)
show_me(bool_five)

Could anyone help me with this one? What am I doing wrong?? :face_holding_back_tears:

Use boolean expressions as appropriate on the lines below!

# Make me false!

bool_one = (2 <= 2) and “Alpha” == “Bravo” # We did this one for you!

# Make me true!

bool_two = “green” == “green” and (13 >= 13)

# Make me false!

bool_three = (11 <= 8) and “mountain” == “mountain”

# Make me true!

bool_four = not (27 <= 27)

# Make me true!

bool_five = (93 != 29) and (13 == 13)

That would be false. Since not is applied, the expression inside the parens needs to be false.

1 Like

OMG :person_facepalming: thanks! it’s better to come back to this in the morning.

1 Like