+ 1

[✓]what is module \ modules ?

( This word I listen so many times in different different languages. example., c, cpp, java, python, etc. )

9th Apr 2021, 6:52 AM
SARVESH ASHOK DEVRUKHAKAR
SARVESH ASHOK DEVRUKHAKAR - avatar
4 Respostas
+ 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.
9th Apr 2021, 6:54 AM
ÃKR
ÃKR - avatar
+ 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!
9th Apr 2021, 6:55 AM
Namit Jain
Namit Jain - avatar
+ 2
Namit Jain [INACTIVE] Is it similar to libraries in C and C++?
9th Apr 2021, 7:58 AM
Calvin Thomas
Calvin Thomas - avatar
+ 1
Calvin Thomas yes, the words modules and libraries are used interchangeably ig :)
9th Apr 2021, 11:16 AM
Namit Jain
Namit Jain - avatar