>>> a = 123
>>> print(id(a))
94366784571712
>>> b = 123
>>> print(id(b))
94366784571712
But, when I change the value to 345 it gives different results
>>> a = 345
>>> print(id(a))
139794845105136
>>> b = 345
>>> print(id(b))
139794845103472
Please can anyone explain why was it giving the same value for 123?