All challenges
Multiple ChoiceBeginner 30s

Context Manager for Files

Choose the best answer for: with open()
Options
  1. 1with open() keeps file open
  2. 2with open() is slower
  3. 3with open() reads everything at once
  4. 4with open() as f: auto-closes the file

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