Mix 'n' Match Conditionals and Control Flow – Syntax Error(s)


#1


EDIT: I found what I did incorrectly, thanks!

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

I keep on getting told "invalid syntax" and/or "Make sure you have all 5 variables." What am I doing wrong?


# 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 >= 1) or 2 < 1

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

# Make me true!
bool_four = not 12/4 == 4 

# Make me true!
bool_five = (4/2 == 2) and (8/4 > 2)


#2

False

T and T  == True

T and F  == False

#3

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