Skip to content

2. Python Fundamentals (Part 2)

Goals

  • Work with Python's built-in collections: lists, tuples, sets, and dictionaries.
  • Iterate with for loops and rewrite the common patterns as comprehensions.
  • Raise and catch exceptions to fail clearly and recover when it makes sense.
  • Manage resources with with blocks and write your own context managers.
  • Wrap functions with decorators and understand what @decorator syntax stands for.