is: The Identity Operator : is « Operator « Python Tutorial






x = y = [1, 2, 3]
z = [1, 2, 3]
print x == y
print x == z
print x is y
print x is z








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