Importing and using modules/libraries

--Originally published at Start in the world of the #TC101

In Tutorialspoint tell us about A module allows you to logically organize your Python code. Grouping related code into a module makes the code easier to understand and use. A module is a Python object with arbitrarily named attributes that you can bind and reference.

Simply, a module is a file consisting of Python code. A module can define functions, classes and variables. A module can also include runnable code.

Creating a module is easy. All you have to do is create a new Python file and define the functions that will belong to that module, and once you wanted to use the library you just created or downloaded from the internet, the first step would be to import it. In the file where you will use it, type the word import followed by the name of the module.