Open In App

Python | Namespaces and Scope Quiz | Question 18

What is the purpose of the __all__ attribute in Python?

(A)



To define all global variables

(B)



To specify which names should be imported when using from module import *

(C)

To list all local variables

(D)

To declare all class attributes

Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized