--Originally published at Programming Fundaments
To use a moodule is necesary to have a text editor creating your cade in the text editor, creating a script, and the files create a module, this can be exported to the python program using the command import(). When ypu have your strings saved , it must be saved with .py at the end the you can use the next command
>>> import example_function
As this does not import the text of the function but the function itsel creatin a whole function with only a couple words in the python interpreter
For more information an examples check out: https://docs.python.org/3/tutorial/modules.html