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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly