Python Professional — Hard
Key points
- __missing__ method creates a default value for missing keys
- Appending values to existing keys modifies the dictionary
- The DefaultList class ensures keys always have a list as a value
Ready to go further?
Related questions
