I was wondering why the following happens in Python:
a=[1,2]
id(a)=2228192243968
id([1,2])=2228187169104
I tried the same with integers and got the expected result:
a=1
id(a)=2228187169008
id(1)=2228187169008
I was wondering why the following happens in Python:
a=[1,2]
id(a)=2228192243968
id([1,2])=2228187169104
I tried the same with integers and got the expected result:
a=1
id(a)=2228187169008
id(1)=2228187169008