List the Attributes and Methods of an Object in Python November 20, 2019 Use the dir() function to return the list of the attributes and methods of the object. Syntax :dir({object})