I having a confusion in python is
keyword
a=3
b=3
print(a is b)
This above code will print True
.
Meanwhile,
a=[3,3]
b=[3,3]
print(a is b)
This code will print False
.
And I know is
compare object reference
Can anyone can explain in detail or provide the link of documentation, how memory allocation and memory reference implemented in python ???? And explain how these two programs are different??