>>> a = 300
>>> b = 300
>>> id(a)
34709776
>>> id(b)
34709824
In above case a and b memory locations are not same
>>> (a, b) = 300, 300
>>> id(a)
34709632
>>> id(b)
34709632
But when assigning using tuple memory locations are same for both a&b. why?