Learning Python: Powerful Object-Oriented Programming
Chapter 9. Common Tasks in Python
At this point, we have covered the syntax of Python, its basic data types, and many of our favorite functions in the Python library. This chapter assumes that all the basic components of the language are at least understood and presents some ways in which Python is, in addition to being elegant and "cool," just plain useful. We present a variety of tasks common to Python programmers. These tasks are grouped by categoriesdata structure manipulations, file manipulations, etc.