A quiz testing knowledge of Python's with statement and context managers. Covers how the with statement handles setup and teardown, using standard-library context managers like open() and threading.Lock, and writing custom context managers as classes or using the @contextmanager decorator. Contains 8 questions with no time limit.
315 Impressions