# This and That (or This, But Not That!) (solved)

#1

EDIT: No bug. Just bad comprehension of Booleans.

Instructions:
Set bool_four equal to the result of not not True or False and not True
Set bool_five equal to the result of False or not (True and True)

My `bool_four` is false, since `x=29` and 29 is smaller than 35.
Codeacademy allows the user to move on the next lesson if
`bool_four = x<35`.

Code:

``````bool_two = (50 != (30+24+1+0))

x=29
y=30
bool_three = (x - y == -1)

bool_four = x>35

bool_five = 50<x<100``````

#2

Can you post your whole code?

#3

not not True or false and not True: (true || (false && !true)), which is always true. "Or" is always evaluated last. That is why x<35 is true, but x>35 isn't

#4

``````bool_one = (1 == 2 )

bool_two = (50 != (30+24+1+0))

x=29
y=30
bool_three = (x - y == -1)

bool_four = x>35

bool_five = 50<x<100``````

#5

Shoot. Mind blown. Yeah "not not True" is "not False" which is "True". Wow. Thank you so much!

#6

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