MemotivaModules, packages, and imports

What is a module?

Modules, packages, and imports

Audio flashcard · 0:15

Nortren·

What is a module?

0:15

A module is a file containing Python code, typically ending in dot py. A module can define functions, classes, and variables. Importing a module runs its code once and makes its names available through the module object. Modules are the basic unit of code organization in Python.
docs.python.org