# This and That (or This, But Not That!) say what

#1

So I'm stuck on exercise 9 in the Conditionals and Control Flow section. Honestly this is the most confusing ■■■■ ever. I'm basically winging this a hoping that the code runs (srsly if anyone can explain this better than IT MUST BE NOT UNTRUE WHEN TRUE IS NOT UNFALE OR TRUE IS NOT UNUNFALE AND TRUE IS FALE NOT FALSE please do)

Anyways, here's my code.

``````bool_one = 1*1 == 2 or not 1**2 != 3 and 5*5 == 25

bool_two = 1*1 == 2 and not 1**2 != 3 or 5*5 == 25

bool_three = 1*1 == 2 and not 1**2 != 3 ( 5*5 !=3 or 5*5 !=4

bool_four = not 1*1 == 4 or 5*5 != 4 and not 5*5 !=4

bool_five = 5*5 !=4 or not ( 1+1 == 2 and 1+1 == 2 )

Replace this line with your code.``````

MAGICALLY all but bool_four are working. Bool_four is giving me a syntax error like so

``````  File "python", line 7
bool_four = not not 1*1 == 4 or 5*5 != 4 and not 5*5 !=4
^
SyntaxError: invalid syntax``````

Any help is much appreciated.

#2

you forgot to close the parentheses

#3

Thanks. That fixed the syntax error but apparently my math is still off. Can someone throw me a working line of code for bool_three? (Set bool_three equal to the result of True and not (False or False))

#4

`True and not (False or False)` <=> `True and not (False)` <=> `True and True` <=> `True`

See??

Why not simply set bool_three equal to the result of `True and not (False or False)` ie `True`?

#5

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