@TimRoberts In this case, yes, but it would be different for, say, `a = 300` and `b = 300`. They are asking about the reason why this is so.
– SelcukSep 21 '21 at 02:30
This is telling you that they aren't. Also note, thinking about "memory location" is the wrong level of abstraction in Python. Here you have two references to some object, the ID is the same, during their overlapping lifetime, therefore, they are the same object. IOW, `x is y`.
– juanpa.arrivillagaSep 21 '21 at 02:34
Essentially, while you might *expect* these two be two different `int` objects, the Python runtime is free optimize immutable built-in objects and not actually create something new, because semantically, it should never make a difference.
– juanpa.arrivillagaSep 21 '21 at 02:35