What this Python type-system question tests
This is an easy practice question designed to verify your foundational understanding of Python's type system and how the language handles type checking and object classification at runtime. It's a quick filter for whether you've internalised how Python's type(), isinstance(), and related introspection tools actually work.
Questions like this appear in coding rounds and screening interviews to ensure candidates won't stumble on basic language semantics. The focus is on recognising the distinction between an object's type, its inheritance chain, and how Python reports these relationships when you inspect a value.
- The
type() built-in and exact type identity - The
isinstance() function and class hierarchies - How Python represents built-in and user-defined types
- Type introspection under inheritance