What is the purpose of the dir() function in Python?
(A)
Returns a list of all global variables
(B)
Returns a list of all local variables
(C)
Returns a list of names in the current namespace
(D)
Returns a list of all functions in the current module
Answer: (C)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles