Computer Science
What is the significance of Modules ?
Python Libraries
5 Likes
Answer
The significance of Python modules is as follows:
- Modules reduce complexity of programs to some degree.
- Modules create a number of well-defined, documented boundaries within the program.
- Contents of modules can be reused in other programs, without having to rewrite or recreate them.
Answered By
3 Likes
Related Questions
Assertion. Python's built-in functions, which are part of the standard Python library, can directly be used without specifying their module name.
Reason. Python's standard library's built-in functions are made available by default in the namespace of a program.
Assertion. Python offers two statements to import items into the current program : import and from <module> import, which work identically.
Reason. Both import and from <module> import bring the imported items into the current program.
What are docstrings ? What is their significance ? Give example to support your answer.
What is a package ? How is a package different from module ?