Examveda

What does the dir() function in Python do?

A. It returns a list of names in the current namespace

B. It returns the contents of a directory

C. It defines a new class

D. It is used to import modules

Answer: Option A


This Question Belongs to Python Program >> Module In Python

Join The Discussion

Related Questions on Module in Python