All challenges
Multiple ChoiceIntermediate 30s

contextlib.contextmanager

Choose the best answer for: @contextmanager
Options
  1. 1@contextmanager replaces __enter__ and __exit__ methods
  2. 2@contextmanager is a class, not a decorator function
  3. 3@contextmanager works only on file objects and handles
  4. 4@contextmanager decorates generator-based context managers

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle