In several programs I wrote, I imported modules in order to use pre-defined functions to complete a task. For example, you can see I imported math in this one to get a square root, and in this one I imported random.
I read about modules from this page:
https://www.tutorialspoint.com/python/python_modules.htm
You can create your own module by writing a file with the extension .pyÂ
One thought on “Modules”