I have a doubt regarding id() in python.
>>> x=2
>>> y=2
>>> id(x)
94407182328128
>>> id(y)
94407182328128
But if i do the same to list,i get different id's
>>> a=[1,2,3]
>>> b=[1,2,3]
>>> id(a)
139700617222048
>>> id(b)
139700617135528
WHY is it so? why for int type i get the id's same and why different for lists?
Thanks in Advance.