The Python import statement allows us to import a Python module. In turn, A Python module helps us organize and reuse our code. This detailed article demonstrates how Python modules work, how you can create modules, and how to import Python modules.
Source: LXer – How To Create And Import Python Modules