“91974˙CH05˙final” 2012/11/10 12:05 page 155 #1
CHAPTER
5
Earthquakes, Floods, and Other
Natural Disasters
5.1 Objectives
To use text files to store large data sets
To access online data sources
To introduce the while loop
To introduce Boolean expressions
5.2 Using Files for Large Data Sets
All the examples in Chapter 4 used small data sets so that we could concentrate on devel-
oping the statistical methods needed to analyze the data. We assumed that our data items
were stored in lists, and we constructed our function to process those lists accordingly. Now
that we have those functions in place we can turn our attention to using statistical ...

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.