A module is just a Python file.
If you create: math_utils.py
That file is a module.
Anything inside it (variables, functions) can be reused.
For Example:
math_utils.py
def add(a, b):
return a + bimport math_utils
result = math_utils.add(2, 3)Key rule:
You must use the module name as a prefix.
This prevents naming conflicts.