When I do the is
comparison on a list is acts differently than on a number or string. For example:
>>> a=[1,2,3] # id = 4344829768
>>> b=[1,2,3] # id = 4344829960
>>> a is b
False
>>> c=1 # id = 4304849280
>>> d=1
>>> c is d
True
Why is this so?