Vidyalelo
Python · Q11

Module in Python

Programming · Python · question 11

Q11

What is the purpose of the __init__.py file in a Python module?

A.
It indicates that the directory should be treated as a Python package
Answer
B.
It contains the main code of the module
C.
It defines a new class
D.
It imports all modules in the directory

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board