What was wrong?


#1

bool_one = False and False

bool_two = -(-(-(-2)==-2 and 4>=16**0.5

bool_three = ((19 % 4 != 300 / 10 / 10) and False)

bool_four = -(1**2)<2**0 and 10%10<=20-10*2

bool_five = True and True

File "python", line 5
bool_three = ((19 % 4 != 300 / 10 / 10) and False)
^
SyntaxError: invalid syntax


#2

Which exercise is this for? Can't see any syntax error on that line when I copy and paste it into a python console. Is there maybe a space before it? It returns False.


#3

It would appear to be Lesson 3.Compare... Closelier!

This exercise gives us expressions written in the comments that we are asked to decipher and write the Boolean response in the associated variable.

Eg.

# 20 + -10 * 2 > 10 % 3 % 2
bool_one = False

#4

Wrong I was. It's Lesson 6.And

Same general concept, though...

# -(-(-(-2))) == -2 and 4 >= 16**0.5
bool_two = False