Students who complete this unit will demonstrate that they can:
- Chapter 9:
- Define a Python module
- Use
from to import names to the current
namespace
- Allow a file to support being executed as a script or
imported as a module
- Chapter 10:
- Open a file for writing
- Read the contents of a file into their program
- Write data to a file
- Use the os module to create portable code
- Use
with to automatically close files