Boolean Bug


#1



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


Oops, try again. Make sure you have a value for all 5 variables!
File "python", line 16
bool_five = "Noob" == "Noob" or (2/2)==1
^
SyntaxError: invalid syntax


The program executed


# 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+4)<2 != True or 2*2=6

# Make me false!
bool_three = "Hello" == "Hello" and ((2**2)*4)/16==1

# Make me true!
bool_four = "Ass" == "Ass" and  ((4/2)==(2*3)/4

# Make me true!
bool_five = "Noob" == "Noob" or (2/2)==1


#2

Hi @objectrockstar70069 ,

Check the parentheses within each expression to make sure they are all matched, especially the one prior to where the syntax error was reported.


#3

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