type — Expert Playground
Declares a type alias (3.12+)
Python Playground
Output
Click "Run" to execute your codetype and object have a circular relationship: type is a subclass of object, but object is an instance of type. This bootstrap is hard-coded in CPython's C implementation and cannot be expressed in pure Python.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?