Exercises
Here are some exercises for you to try on your own. Solutions are available at http://pragprog.com/titles/gwpy2/practical-programming.
-
In this exercise, you will create a table to store the population and land area of the Canadian provinces and territories according to the 2001 census. Our data is taken from http://www12.statcan.ca/english/census01/home/index.cfm.
Table 32. 2001 Canadian Census DataProvince/Territory
Population
Land Area
Newfoundland and Labrador
512930
370501.69
Prince Edward Island
135294
5684.39
Nova Scotia
908007
52917.43
New Brunswick
729498
71355.67
Quebec
7237479
1357743.08
Ontario
11410046
907655.59
Manitoba
1119583
551937.87
Saskatchewan ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access