Python caches immutable objects(read integers and tuples..) - which is why they are immutableand saves memory if u reference the same immutable in manyplaces. So small
integers, empty tuples and such are actuallycached in Python runtime, so you keep getting back the same objectand hence the same id.
Try this for the list, you don't get the same id.