English

What is the use of modules?

Advertisements

Question

What is the use of modules?

Short/Brief Note
Advertisements

Solution

We use modules to break down large programs into small manageable and organized files. Furthermore, modules provide the reusability of code. We can define our most used functions in a module and import them, instead of copying their definitions into different programs.

shaalaa.com
Python Program to Import C++
  Is there an error in this question or solution?
Chapter 14: Importing C++ programs in Python - Evaluation [Page 289]
Advertisements
Share
Notifications



      Forgot password?
Use app×