A list can contain anything, even other lists. When we have a list of lists, we can call it a nested list .
The
dictionary
is a built-in type in Python, called
dict
. A dictionary is a collection like a list, but unlike a list whose values are identified positionally using integer indices, the values in a dictionary are identified by
keys
, which can be any immutable type (e.g.,
string
) and not just
int
.
AND read 11.1 - 11.5 on dictionaries
Slides: individual slides for viewing , 6-up layout for printing
Examples: table.py (skeleton), table.py
Questions and Answers: check the answers — after you try them on your own!