A module is a collection of code designed for a specific purpose. Importing a module gives a Python program access to capabilities beyond its core features, while users generally need to know only what it does and how to call its functions. section 5.1.5
Modules make specialized tasks practical:
- Use the import statement to bring a module into a program. section 2.8.2
- Use built-in modules such as csv and zipfile without installing them separately. section 5.3
- Install other modules, such as matplotlib, plotly, seaborn, pandas, or scikit-learn, before importing them. section 5.1.5
- Choose among modules by comparing their purpose, capabilities, licensing, and trade-offs with search or Copilot Chat. section 9.2
Creating a ZIP archive
Import zipfile, create a writable ZipFile object, add nfl_offensive_stats.csv, actors.csv, and chores.csv, then close the archive. The module supplies the archive operations so the program does not implement them from scratch. section 9.2


































