Vidyalelo
Python · Q98

Module in Python

Programming · Python · question 98

Q98

What is the purpose of the __name__ variable in a Python module?

A.
It indicates whether the module is being run as the main program or imported
Answer
B.
It stores the code of the module
C.
It defines a new variable
D.
It is used to create aliases for modules

Answer: Option A

Solution

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