QuestionQ17

VerifiedAdvanced Object-Oriented Programming

Which function can be used to obtain a list of methods inherent to an object?

Explanation

Python’s built-in dir() function lists the names available on an object, including its methods and other attributes.

Community Discussion

No comments yet. Be the first to start the discussion!