Lesson 26 of 34 · +110 xp

With Statement

Context manager.

Explained simply

Your task

Write: with open('f.txt') as f: data = f.read()

with.py
▶ Output (python)
Click 'Run code' to execute your code in a real sandbox.
← Back