Nested Lists and Dictionaries Flashcards
1
Q
Two-dimensional arrays
A
A list where each element is a list. This often implies that all inner lists have the same length. When all inner lists have the same length, a two-dimensional array can resemble a grid, as the structure mimics rows and columns.
2
Q
Indexing: List vs. Dictionary
A
When is comes to indexing and grabbing values … lists are the same as dictionaries… but lists have NUMBER indexes and dictionaries have STRING indexes.