Python: Modules, Classes & Objects
So in Python you have 3 major tools for code organization…Modules, Classes, & Objects
Python modules are pretty much just a single python file. You can think about it as giving your variables and functions a specific namespace to reference within another python script. For example: The code below imports the contents of "mySampleModule.py" to allow all it's contents to be used in another python script under it's namespace (by default, the filename).