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. Learn how imports locate your code.

INSIGHTS

Organizing code into modules and packages makes it easier to reuse and manage. Try moving a function into a separate Python file and importing it.

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

COMMENTS

0/40
0/2000

Loading comments…