Python · Level 2 of 5
Module
A unit of Python code with its own namespace.
Importing a module can execute its top-level statements.
Example
Utility functions are collected in one importable file.
Listen to the definition and example
Audio transcript
Module. A unit of Python code with its own namespace. Importing a module can execute its top-level statements. For example: Utility functions are collected in one importable file.
Explore this concept
Why it matters
This helps you follow Python-based experiments and understand their data structures and tools.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.