Q. Predict the output if ‘e’ is given input as ‘True’

 

a = True

b = 0 < 5

print (a == b)

print (a is b)

c  = str (a)

d = str (b)

print (c == d)

print (c is d)

e = input ("Enter : ")

print (c == e)

print (c is e)

 

Answer =

True

True

True

True

Enter : True

True

False

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post