Skip to content

Glossary: Python Basics

with

Also written: with open

A keyword used with `open()` that closes the file automatically when its indented block ends, even if an error happens.

Where the book teaches it