I thought every object take an id based on key.
>>> a = 10
>>> b = 20
>>> id(a)
1876869280
>>> id(b)
1876869440
>>> a,b=b,a
>>> id(a)
1876869440
>>> id(b)
1876869280
When swap the variables, their ids are swapped too. If every object has a unique id, then why ids are swapped? I thought id(a) and id(b) will be same after swap.