Python Modules and Packages: An Introduction – Real Python

Python Best Practices Artwork

Christopher Bailey

In this course, you’ll learn about Python modules and Python packages, two mechanisms that facilitate modular programming.

Modular programming is the process of breaking a large, unwieldy programming task into separate, smaller, more manageable subtasks or modules. Individual modules can then be put together like building blocks to create a larger application.

Learn how to write and import modules so you can optimize the structure of your own programs and make them easier to maintain and grow.

Python Modules and Packages: An Introduction

12 Lessons 1h 2m

Christopher Bailey Christopher Bailey

Chris is an avid Pythonista and creates video tutorials for Real Python. He is a programmer and data analyst. He creates music under the name Tripnet. Chris lives in Colorado with his wife and two dogs.

» More about Christopher


Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

John Sturtz

« Browse All Courses