This part of the book presents the Python language, in a bottom-up fashion. This section represents the bulk of the text, which tells you something about the focus of the book. We begin with a quick introduction to Python and then look at how to run Python programs so you can get started coding examples and exercises immediately. You can get a lot done in Python with these tools alone. This chapter begins our look at Python's higher-level program structure tools.
Functions turn out to be a simple way to package code for reuse.
Chapter 5, Modules Python modules let you organize statements and functions into larger components, and this chapter illustrates how to create, use, and reload modules on the fly. As you'll see, OOP in Python is mostly about looking up names in linked objects. Exceptions We wrap up the section with a look at Python's exception handling model and statements. This comes last, because exceptions can be classes if you want them to be. In this section, we sample Python's built-in tools, and put them to use in a more or less random collection of small example programs.