#1

Make me false!

bool_one = (2 <= 2) and "Alpha" == "Bravo" # We did this one for you!
print (bool_one)

Make me true!

bool_two = 2 == 2 or "Alpha" == "Bravo"
print (bool_two)

Make me false!

bool_three = 3 > 6 not 2 == 2
print (bool_three)

Make me true!

bool_four = 2 == 2 or 3 == 6
print (bool_four)

Make me true!

bool_five = 2 == 2 not 2 == 10
print (bool_five)

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

Replace this line with your code.

#2

I think it's because not goes before a boolean to change the value (ie: not true = false / not false = true)

#3

i believe the error is in bool three but i cant understand how that doesnt equal out to false?

#4

completed not staement needs to be followed by an and statement or at least

Make me false!

bool_one = (2 <= 2) and "Alpha" == "Bravo" # We did this one for you!
print (bool_one)

Make me true!

bool_two = 2 == 2 or "Alpha" == "Bravo"
print (bool_two)

Make me false!

bool_three = not 2 == 2 and 4 == 5
print (bool_three)

Make me true!

bool_four = 2 == 2 or 3 == 6
print (bool_four)

Make me true!

bool_five = not 2 == 10 and 2 == 2
print (bool_five)

#5

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