The apihelper.py program and its output should now make perfect sense.
Before diving into the next chapter, make sure you're comfortable doing all of these things:
- Defining and calling functions with optional and named arguments
- Using str to coerce any arbitrary value into a string representation
- Using getattr to get references to functions and other attributes dynamically
- Extending the list comprehension syntax to do list filtering
- Recognizing the and-or trick and using it safely
- Defining lambda functions
- Assigning functions to variables and calling the function by referencing the variable. I can't emphasize this enough, because this mode of thought is vital
to advancing your understanding of Python. You'll see more complex applications of this concept throughout this book.