Skip to main content

Course

Python

PythonPart 4 of 7 · Chapter 2 of 4

Splitting a Program Into Pieces

A single file works exactly until it does not, somewhere around the point it holds three unrelated things. Split one program across two files, import one from the other, and watch the boundary hold.


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.