AI engineering glossary · Python core
What is module?
Module: A single Python file containing definitions and statements that can be loaded into another program with import. Modules organise code into reusable units and give each file its own namespace.
Module: an example
Saving def gst(p): ... in tax.py lets another file run import tax and call tax.gst(1000).
Related terms
More Python core terms
Where you learn it
Module is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.