5. The import system — Python 3.10.3 documentation
docs.python.org › 3 › referenceMar 18, 2022 · Python code in one module gains access to the code in another module by the process of importing it. The import statement is the most common way of invoking the import machinery, but it is not the only way. Functions such as importlib.import_module () and built-in __import__ () can also be used to invoke the import machinery.