Context Managers and the With Statement Test
Question 1 of 4
Which two dunder magic methods must a class implement to participate in the Python `with` context management protocol?
Tip: Press 1-4 on keyboard to select.
Which two dunder magic methods must a class implement to participate in the Python `with` context management protocol?
Tip: Press 1-4 on keyboard to select.