Phase: 3. Data Structures
Estimated Time: 2 hours
Milestone: No
Build on basic dictionary skills with nesting, powerful dictionary methods, comprehensions, merging, and defaultdict.
- Nested dicts
- Dict methods:
keys(),values(),items(),update(),pop(),setdefault(),fromkeys() - Dict comprehensions
- Merging dicts with
|operator (Python 3.9+) defaultdict(brief introduction)
- Work with nested dictionaries (dicts within dicts)
- Use advanced dict methods for manipulation
- Write concise dict comprehensions
- Merge dictionaries using the
|operator - Use
defaultdictfor default values
- Modules 000–023