I have a code like below
a=25
b=20
#number=0
if a < b == True:
number = 1
elif a >b == True:
number = 2
print(number)
When i execute this i get the following error
NameError: name 'number' is not defined
When i initialize the number = 0
like below
a=25
b=20
number=0
if a < b == True:
number = 1
elif a >b == True:
number = 2
print(number)
then i am not getting the output as 2
, i am getting 0
instead, what am i missing here