In this chapter, we’ll take some deep dives into specific Python language subjects. These subjects may have been touched already. For example, we covered functions in our introduction to Python functions. But the advanced Python function concepts that you’ll learn from this chapter expand on that knowledge.
Other topics that are covered here:
- List comprehensions: an elegant way to reduce the amount of for loops in your code
- Python docstring: for formally documenting your Python code
- Exceptions and the try.. except statements for handling errors in Python