✐
✐
“91974˙CH04˙final” — 2012/12/14 — 14:19 — page 117 — #1
✐
✐
✐
✐
✐
✐
CHAPTER
4
A Nest of Snakes: Introducing the
Python Collections
4.1 Objectives
To understand Python lists
To use lists as a means of storing data
To use dictionaries to store associative data
To implement algorithms to compute elementary statistics
4.2 What Is Data?
Every day there are thousands of earthquakes that occur around the world. Most of them
are so mild that they are hardly noticed except by those who have monitoring equipment.
If we consider only those earthquakes that you feel, then there may be 35 on a typical day.
Some days there may be only 10 but on other days there may be 40
Get Python Programming in Context, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.