Skip to content

Glossary: Python Basics

open()

Also written: open

A built-in function that opens a file, given its name and a mode. It is normally used with `with` so the file is closed automatically.

Where the book teaches it

Related terms

with