10/15


#1


syntax error on bool five

I have tried multiple lines but always an error

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 "Alpha" != "Bravo"

Make me false!

bool_three = (4 < 2*2) and not ("Alpha" == "Bravo")

Make me true!

bool_four = (4 < 2*2) or not (5 != (10*1/2)

Make me true!

bool_five = "home" != "house"

this is what I get everytime. I have used and, not and or

File "python", line 16
bool_five = "home" != "house"
^
SyntaxError: invalid syntax


Replace this line with your code.


#2

The syntax error is on bool five. I have changed it to the following code but still receive the error message

Make me true!

bool_five = "home" != "house" or 5 <= 2 + 2 + 5 - 1


#3

I finally got it. There was a closing ) missing in the line above


#4

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