Report Bug
Qus :

What is the output of following code?

x = 1
y = 2
z = 3
print(x < y < z == True)

Qus

निम्न code का output क्या होगा?

x = 1
y = 2
z = 3
print(x < y < z == True)


A. True
B. False
C. 1
D. None


Solution
B. False



Explanation
Python interprets this as x < y and y < z and z == True. 3 == True is False. <br><br> यह expression x < y and y < z and z == True के समान है। 3 == True False है।



Report Bug