a = [1,2,3] b = a a == b # True a is b # True c = list(a) a == c # True a is c # False
https://realpython.com/products/python-tricks-book/