compare_lists(a, b) that returns a tuple (equal, same_object) where equal is whether a == b (same contents) and same_object is whether a is b (same object in memory).a = [1, 2, 3], b = [1, 2, 3]
(True, False)
Same contents but different list objects.
a = [1, 2], b = a
(True, True)
b is another name for the exact same object.
== compares values; is compares object identity.