37. Package Structure
A package is a collection of Python modules in a directory with an __init__.py file.
Example Layout
mypackage/
__init__.py
module1.py
module2.py
Importing
from mypackage import module1
from mypackage.module2 import some_function
Wrap-Up
Packages organize related modules together in a namespace.