What does the dir() function do with no arguments in Python?
Correct answer
A. Lists names in the current scope
12 views
A. Lists names in the current scope
12 views
dir() lists the names defined in the current local scope.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is A? Ask here and get an explanation.