Page 180 -
P. 180
5 hashes and databases
Putting data
in its place
To surf one‛s data properly,
one must constantly practice
one‛s pose...
Arrays aren’t the only show in town when it comes to data.
Programming languages come with other data-arranging goodies too, and our chosen tool,
Python, is no exception. In this chapter, you’ll associate values with names using a data
structure commonly called the hash (better known as dictionary to Python-folk). And when
it comes to working with stored data, you’ll read data from an external database system
as well as from regular text-based files. All the world’s awash with data, so turn the page
and start applying your ever-expanding programming skills to some cool data-processing
tasks.
this is a new chapter 145