Vidyalelo
Python · Q116

Module in Python

Programming · Python · question 116

Q116

What does the dir() function in Python do?

A.
It returns a list of names in the current namespace
Answer
B.
It returns the contents of a directory
C.
It defines a new class
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