What does the id() function return in Python?
Correct answer
A. The unique identity (memory address in CPython) of an object
A. The unique identity (memory address in CPython) of an object
id() returns an integer unique to the object during its lifetime; in CPython it is the memory address.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is A? Ask here and get an explanation.