+ 1

help me to solve the code #0011

https://code.sololearn.com/cCsctJ77U2sA/?ref=app what is --> id() <-- in this code..? describe in detail..

23rd Mar 2018, 8:15 AM
Pradipsinh Jadeja
Pradipsinh Jadeja - avatar
1 Odpowiedź
+ 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
23rd Mar 2018, 9:02 AM
🌛DT🌜
🌛DT🌜 - avatar