Exploring Modules and Packages
This lesson about modules and packages covers their purpose and how to create them. We also take a deeper look at a handful of common modules. This lesson is part of a series of content designed to help you learn to program with the Python programming language.
Learning Objectives
- Describe the concept of a module
- Describe the concept of a package
- Describe how to create a module
- Describe how to create a package
- Describe the purpose of sys.path
- Describe the purpose of the built-in dir function
- Describe how to import objects from modules
- Describe the purpose of the standard library
- Describe the purpose of the sys, os, math, collections, and random modules
Intended Audience
This lesson was designed for first-time developers wanting to learn Python.
Prerequisites
This is an introductory lesson and doesn’t require any prior programming knowledge.
Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.