Nested Data Structures
Nested Data Structures CS106AP Lec 15
A slides from Stanford. That was really amazing at touching the deeper aspects of data structures!
Data structures can be nested together:
- Lists in lists - grid/game board
- Lists in dicts - animals to feeding times
- Dicts in dicts - your phone’s contact book
An example: json.
Flattening the nested data: python-bokeh.