What this Python type-system interview question tests
This is a beginner-level Python language question that probes foundational knowledge of how Python's type function behaves when applied to built-in objects and literals. It rewards familiarity with Python's object model and the distinction between type objects and instances.
To answer questions like this, you need to understand what type() returns for different kinds of values—whether a literal, a class, or a constructed object. The question may involve edge cases around mutable types, immutable types, or special Python objects where the answer is not immediately obvious from casual familiarity.
- The type hierarchy and metaclasses
- Type identity vs. equality in Python
- Built-in type constructors and their return values