Skip to main content

Course

Python

PythonPart 5 of 7 · Chapter 1 of 4

Reading and Writing Outside the Program

Everything so far has lived inside the program and vanished the moment it stopped running. Write a line to an actual file on disk, close it properly, and read the same line back in a program that starts fresh.


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.