+ 1
help me to solve the code #0011
https://code.sololearn.com/cCsctJ77U2sA/?ref=app what is --> id() <-- in this code..? describe in detail..
1 Antwort
+ 19
In that question func() returns id()
so id() == func() will return true
id() is a built-in function in Python 3, which returns the identity of an object. The identity is a unique integer for that object during its lifetime. This is also the address of the object in memory
check this out 👇
https://stackoverflow.com/questions/15667189/what-is-the-id-function-used-for