MaGe Linux Operations
Apr 19, 2018 · Fundamentals
Master Python Imports: From Simple Modules to Full Packages
This article explains how Python’s __name__ variable works, demonstrates module creation with pizza.py and menu.py, shows how to turn modules into a package with __init__.py and __main__.py, covers absolute vs. relative imports, executable packages, sibling‑package imports, and the module search path.
ModulesPackagesRelative Import
0 likes · 13 min read
