2. Compare Closely! Need help


#1



I don't know what I'm doing wrong...
can some one please help?

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

# Set this to True if 17 < 328 or to False if it is not.
if 17 < 328 bool_one = True   # We did this one for you!
else bool_one = False
# Set this to True if 100 == (2 * 50) or to False otherwise.
if 100 == (2*50) bool_two = True
else bool_two = False
# Set this to True if 19 <= 19 or to False if it is not.
if 19 <= 19 bool_three = True
else bool_three = False
# Set this to True if -22 >= -18 or to False if it is not.
if -22 >= -18 bool_four = True
else bool_four = False
# Set this to True if 99 != (98 + 1) or to False otherwise.
if 99 != (98+1) bool_five = True
else bool_five = False


#2

this program should have 5 lines of code (comments excluded)

lets do bool one, which has the following comment:

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

which means you get one line of code, either:

bool_one = True

or:

bool_one = False

which of this two you need, depends on if the condition in the comment would evaluate to true or false (you have to figure that out)


#3

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