10. Mix n Match


#1


https://www.codecademy.com/courses/python-beginner-BxUFN/2/6?curriculum_id=4f89dab3d788890003000096#

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


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


#2

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.


#3

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"


#4

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


#5

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


#6

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