10. Mix n Match



This did not work for "true" and I don't understand why...

# Make me true!
bool_two = (3 >= 2) and "x" == "y"


Because 3 is not greater than nor equal to 2. Also, "X" does not equal "Y". When use the word "and" both comparisons must be true for the whole statement to evaluate to True.

Currently they are both false.


Maybe I'm thinking about it the wrong way but the example given is

Make me false!

bool_one = (2 <= 2) and "Alpha" == "Bravo"

which I interpreted as "False or True and not True"

so I was thinking bool_two = (3 >= 2) and "x" == "y" would be "True or False and not True"


Your evaluation is completely correct! But bool_one is supposed to be False and bool_two is supposed to be True.


Your evaluation isn't wrong, if you look at the second Boolean, it should be false when Codecademy wants you to make it true.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.