10. Mix 'n' Match


#1



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


Make sure you have a value for all 5 variables!


# 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 = (4 === 4) and "Four" == "Five"

# Make me false!
bool_three = (2 > 2) and "Two" == "Five"

# Make me true!
bool_four = (2 <= 2) and "The" == "Fight"

# Make me true!
bool_five = (2 > 1) and "Get" == "Give"


#2

Hi @jasminepatterson,

You have === in this line ...

bool_two = (4 === 4) and "Four" == "Five"

#4

The Python operator for checking for equivalence is ==, but you have === there.


#5

bool_two = (4 == 4) and "Four" == "Five"

Double check your value for bool_two!


#6

Both operands of the and operator need to evaluate to True for the entire expression to be True. However, this part is False ...

"Four" == "Five"

#7

bool_four = (2 <= 2) and "The" == "Fight"

Double check your value for bool_four!


#8

The problem is that this part is False, so with the and operator, the entire expression evaluates to False ...

"The" == "Fight"

#9

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