+ 1
[✓]what is module \ modules ?
( This word I listen so many times in different different languages. example., c, cpp, java, python, etc. )
4 Réponses
+ 8
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.
+ 5
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!
+ 2
Namit Jain [INACTIVE] Is it similar to libraries in C and C++?
+ 1
Calvin Thomas yes, the words modules and libraries are used interchangeably ig :)