Introduction to Modules and Packages in Python
Difficulty: Beginner
Duration: 7 minutes and 25 seconds
Students: 376
Rating: 5/5
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.