Q. What does `dir()` function do?
β
Correct Answer: (B)
Lists attributes and methods of an object
Explanation: `dir()` lists the attributes and methods of an object.