Unit G Reading assignment
Examples
default dictionary
file 2
file open write close
with
Chapter 11 Modules, Packages, and Goodies
Handle Missing Keys with setdefault() and defaultdict()
Read only this section.
Chapter 14 Files and Directories
File Input/Output
Create a File with open()
Write a Text File with print()
Write a Text File with write()
Read a Text File with read(), readline(), or readlines()
Write a Binary File with write()
omit
Read a Binary file with read()
omit
Close Files Automatically by Using with
Change Positions with seek()
omit
OMIT THE REST OF THE CHAPTER
Chapter 16 Data in a Box: Persistent Storage
Flat Text Files
scan
Padded Text Files
omit
Tabular Text Files
CSV
Read this section only
OMIT THE REST OF THE CHAPTER