What built-in function will you use to find the object id?

Questions & AnswersCategory: PythonWhat built-in function will you use to find the object id?
1 Answers
Geek Boy Staff answered 2 years ago

d. id()
Explanation
id(object) – return the “identity” of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value.