Chapter 6. Lists and Dictionaries
This chapter presents the list and dictionary object
types—collections of other objects, which are the main
workhorses in almost all Python scripts. As we'll
see, both of these types are remarkably flexible: they can be
changed, can grow and shrink on demand, and may contain and be nested
in any other kind of object. By leveraging these types, we can build
up and process arbitrarily rich information structures in our
scripts.
|