Introduction
Programs become far more useful when they can read data that already exists and save results for later. Configuration files, log files, notes, exports from other apps—all of these live on disk as files, and Python makes it easy to work with them.
In this module, you learn how to open files safely using context managers, read text data from files in a few different ways, and write new data—either replacing what's there or adding to the end. You'll apply everything by building a to-do list app that remembers tasks between runs.
Note
We recognize that different people like to learn in different ways. You can choose to complete this module in video-based format or you can read the content as text and images. The text contains greater detail than the videos, so in some cases you might want to refer to it as supplemental material to the video presentation.