# What's wrong with my code, 2/15

#1

#2

Try double checking your conditional statement for `bool_four`
I think you'll find that -22 is actually less than -18 so bool_four doesn't get set to anything. You don't have to set it to what the result of the condition is, you have to make sure that the condition resolves to True for ALL of them.

#3

Hi,

The instructions for this activity are:

Set each variable to True or False depending on what you think the result will be. For example, 1 < 2 will be True, because one is less than two.

Set bool_one equal to the result of 17 < 328
Set bool_two equal to the result of 100 == (2 * 50)
Set bool_three equal to the result of 19 <= 19
Set bool_four equal to the result of -22 >= -18
Set bool_five equal to the result of 99 != (98 + 1)

I also see that the original code provided is

``````# Assign True or False as appropriate on the lines below!

# Set this to True if 17 < 328 or to False if it is not.
bool_one = True   # We did this one for you!

# Set this to True if 100 == (2 * 50) or to False otherwise.
bool_two =

# Set this to True if 19 <= 19 or to False if it is not.
bool_three =

# Set this to True if -22 >= -18 or to False if it is not.
bool_four =

# Set this to True if 99 != (98 + 1) or to False otherwise.
bool_five =``````

Reset your code and only input the outcomes for each bool variable. Don't recreate the if statements - that's probably what is throwing off the checker.

#4

Agree with IIoan

correct code

# Set this to True if 17 < 328 or to False if it is not.

bool_one = 17 < 328

# Set this to True if 100 == (2 * 50) or to False otherwise.

bool_two = 100 == (2 * 50)

# Set this to True if 19 <= 19 or to False if it is not.

bool_three = 19 <= 19

# Set this to True if -22 >= -18 or to False if it is not.

bool_four = -22 >= -18

# Set this to True if 99 != (98 + 1) or to False otherwise.

bool_five = 99 != (98 + 1)