Use the dir() function to return the list of the attributes and methods of the object.
Syntax : dir({object})