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..
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