2. Python Fundamentals (Part 2)
Goals
- Work with Python's built-in collections: lists, tuples, sets, and dictionaries.
- Iterate with
forloops and rewrite the common patterns as comprehensions. - Raise and catch exceptions to fail clearly and recover when it makes sense.
- Manage resources with
withblocks and write your own context managers. - Wrap functions with decorators and understand what
@decoratorsyntax stands for.