Vidyalelo
Python · Q104

Module in Python

Programming · Python · question 104

Q104

What is the purpose of the __file__ attribute in a Python module?

A.
It stores the path of the current module file
Answer
B.
It contains the main code of the module
C.
It defines a new variable
D.
It is used to import modules

Answer: Option A

Solution

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