Back to feed

An Introduction to Python Modules and Packages

Real Python
An Introduction to Python Modules and Packages

EDITOR BRIEF

Python modules and packages help make modular programming possible. The article introduces how imports locate your code.

INSIGHTS

Organizing code into reusable parts makes projects easier to manage. Try creating a small module and importing it into another Python file.

CodeFriends courses that build on this story. Practice in the browser with nothing to install.

COMMENTS

0/40
0/2000

Loading comments…