A = 314
if A == A == A:
print('True #1')
if A == A == 271:
print('True #2')
lie = 0
if lie is lie is lie:
print('no matter how white, how small,')
print('how incorporating of a smidgeon')
print('of truth there be in it.')
Result:
True #1
no matter how white, how small,
how incorporating of a smidgeon
of truth there be in it.
I know it is not normal to use two "="s and "is"s in the if sentence. But I would like to know how the Python interpreter intereprets the if
statement.
Is the expression lie is lie is lie
interpreted simultaneously, or short-circuit way?