Modules

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s