A

Admin • 833K Points
Coach

Q. What does `dir()` function do?

  • (A) Deletes a variable
  • (B) Lists attributes and methods of an object
  • (C) Returns the directory path
  • (D) Creates a directory
  • Correct Answer - Option(B)
  • Views: 28
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`dir()` lists the attributes and methods of an object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.