All challenges
Multiple ChoiceIntermediate 180s

[Python] File open with statement for setup/teardown

with open('f') as f. Why preferred?
Options
  1. 1List comprehension
  2. 2Decorator
  3. 3Context manager
  4. 4Generator

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