ExamVeda
Login
Home
Introduction to Python
?

What is the purpose of a module in Python?

Answer & Solution
Correct Answer: Option C
In Python, the purpose of a module is to organize functions, classes, and variables.
A module in Python is a file containing Python definitions and statements. The primary purpose of modules is to organize related code into reusable units. Modules can contain functions, classes, variables, and even other modules. By structuring code into modules, you can break down large programs into smaller, more manageable pieces, making it easier to understand, maintain, and reuse. Additionally, modules facilitate code sharing and collaboration among developers by providing a standardized way to encapsulate and distribute functionality.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.