help me to solve the code #0011 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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