Examveda

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

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


This Question Belongs to Python Program >> Module In Python

Join The Discussion

Related Questions on Module in Python