Standard Type Object Identity Comparison Operators : is « Operator « Python Tutorial






a = [ 5, 'hat', -9.3]
b = a
print a is b
print a is not b
b = 2.5e-5
print b
print a
print a is b
print a is not b








4.6.is
4.6.1.is: The Identity Operator
4.6.2.is not
4.6.3.Standard Type Object Identity Comparison Operators