What does import do?
Modules, packages, and imports
Audio flashcard · 0:14Nortren·
What does import do?
0:14
Import locates the named module, loads it if not already loaded, executes its top-level code, and binds the module to a name in the current namespace. Imports are cached in sys.modules, so repeating an import does not re-execute the module's code.
docs.python.org