Function Description dir() Returns a list of the specified object's properties and methods Python Built in Functions Syntax : dir ( object ) Example : Create a dictionary containing personal information: class Person: name = "John" age = 36 country = "Norway" print( dir (Person)) output ['__class__', '__ delattr __', '__ dict __', '__ dir __', '__doc__', '__ eq __', '__format__', '__ ge __', '__ getattribute __', '__ gt __', '__hash__', '__ init __', '__ init_subclass __', '__le__', '__ lt __', '__module__', '__ne__', '__new__', '__reduce__', '__ reduce_ex __', '__ repr __', '__ setattr __', '__ sizeof __', '__ str __', '__ subclasshook __', '__ weakref __', 'age', 'country', 'name']