Python Programming for the Absolute Beginner, 3rd Edition
Overview
Variables provide a great way to store and access information while a program runs, but often, you'll want to save data so that you can retrieve it later. In this chapter, you'll learn to use files for this kind of permanent storage. You'll also learn how to handle errors that your code may generate. Specifically, you'll learn to do the following:
-
Read from text files
-
Write to text files
-
Read and write more complex data with files
-
Intercept and handle errors during a program's execution
Категории