4 Answers
New AnswerA 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.
Modules are extra files that we will have to import to our file in order to use their functions/classes. For eg. There is a file which has a function that sums 2 numbers We can import it to another file as a module and use its function! There are thousands of built-in modules in different languages that can be used to make it easier for us to make our code!
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message