# Compare closely

#1

Exercise 2.1 :Code is working fine .Dont know why its not moving to next lesson and what is output format expected.

def comparator():
a=17
b= 328
if (a < b ):
bool_one = True
print "bool_one = True " # We did this one for you!
else:
bool_one = False
print "bool_one = False"

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

``````c= 100
d = 2 * 50
if(c == d):
bool_two = True
print "bool_two = True"
else:
bool_two = False
print "bool_two = False"``````

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

``````a=19
b=19
if(a <= b):
bool_three = True
print "bool_three = True"
else:
bool_three = False
print "bool_three = False"

``````

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

``````a= -22
b = -18
if(a>=b):
bool_four = True
print "bool_four = True"
else:
bool_four = False
print "bool_four = False"``````

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

``````a=99
b= 98+1
if(a!=b):
bool_five = True
print "bool_five = True"
else:
bool_five = False
print "bool_five = False"``````

comparator

Result:
bool_one = True
bool_two = True
bool_three = True
bool_four = False
bool_five = False

#3

No output is expected.
They just ask you to assign values `True`/`False` to a couple of variables based on what some expressions would evaluate to.

The expected code is what you printed (assuming those are the correct boolean values)