ExamVeda
Login
Home
Introduction to Python
?

Which of these is the definition for packages in Python?

Answer & Solution
Correct Answer: Option B
In Python, packages are defined as a folder of python modules.
A package in Python is a directory that contains a special file named "init.py" along with other Python modules or sub-packages. These modules can be accessed using dot notation. Packages allow you to organize related modules into a hierarchical structure, providing a convenient way to manage and distribute code. By structuring code into packages, you can create reusable components, improve code organization, and facilitate code sharing and collaboration.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.