Mix n match


#1



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

Now matter what I put on the line 16 same message appears:
File "python", line 16
bool_five = (3 == 3) or (5 == 5)
^
SyntaxError: invalid syntax


This is the total code, can you spot the mistake? 
# 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 = (3 == 3) or "Pellinor" == "Parsifal"

# Make me false!
bool_three = (2 != 2) and (1 == 1)

# Make me true!
bool_four = 4 == 5 or not(not(7 * 3 >= 21)

# Make me true!
bool_five = (3 == 3) or (5 == 5)


#2

the problem is in the line above, look at your parentheses, they don't match

You should manually evaluate the condition, then set bool_one to True or False depending on if the condition is true or false


#3

Bracket mismatch. Two left, one right.


#4

Thank's! I was confused since the message said that the error was in different line...


#5

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