Python Basics: Modules and Packages - Real Python
Briefly

Instead of writing a single file, you can put related code into separate files called modules. You can put individual modules together like building blocks to create a larger application.
Create your own modules Use modules in another file through the import statement Organize several modules into a package
Read at Realpython
[
add
]
[
|
|
]