Home / Python Tips Generated By ChatGPT / The is Operator for Identity Comparison in Python Check if two variables refer to the same object. Source Code a = [1, 2, 3] b = a print(a is b) # True