What this Python built-in function question tests
This is an easy practice question that checks whether you understand how Python's id() function works and what it returns in CPython. It's a straightforward language-knowledge question designed to confirm you can reason about object identity and memory representation.
To answer, you need to know what id() returns for a given object in CPython's runtime, and whether that value is predictable or varies. The question rewards familiarity with Python's object model and the distinction between identity (what id() measures) and equality (what == tests).
- Object identity vs. object equality in Python
- How CPython implements the
id() builtin - Memory addresses and object references