is not : is « Operator « Python Tutorial






x = [1, 2, 3]
y = [2, 4]
x is not y

# Use == to see if two objects are equal, and use is to see if they are identical (the same object).








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