Suppose I have the following code in Python
a = 3
b = 3
if(id(a) == id(b)):
print("Yes")
I am familiar with C, so I expected no output but the output was Yes. So I found the description of the function id using help(id) and it showed
Return the identity of an object. This is guaranteed to be unique among simultaneously existing objects. (CPython uses the object's memory address.)
Initially, I thought that it is returning memory locations. But now I am confused about what exactly is the identity that id is returning? Definitely, it is not returning the address of the memory location.