For creating a module you have to create a function, save the function in pithons location and import the module before calling the function in the future, as you can see in my video.
Creating and using a Python module by Pablo is licensed under a Creative Commons Attribution 4.0 International License.