Python Professional — Hard
Key points
- Subclasses are registered in the _registry dictionary with keys.
- The __init_subclass__ method is used to add subclasses to the registry.
- The correct output shows the keys and corresponding classes in the _registry dictionary.
Ready to go further?
Related questions
