Mix n match


#1


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

File "python", line 10
bool_three = 2 > 4 not 5 > 3
^
SyntaxError: invalid syntax


# 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 = 2 == 2 and 3 < 4

# Make me false!
bool_three = 2 > 4 not 5 > 3

# Make me true!
bool_four = 100 > 4 or 3 > 6

# Make me true!
bool_five = 5 > 4 and not 3 == 3


#2

The keyword not is used to reverse the logical state of its operand.

So I would suggest using the or operator instead.


#3

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