📝 **Question:** Why use `@contextmanager` instead of writing a class with `__enter__`/`__exit__`?
📋 Pick the right answer.
💡 **Hint:** Re-read the theory above if unsure.
📝 **Question:** Why use `@contextmanager` instead of writing a class with `__enter__`/`__exit__`?
📋 Pick the right answer.
💡 **Hint:** Re-read the theory above if unsure.
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet