Learning Sections show dir, __dict__, and help Method in Python Python provides several built-in functions and attributes that are useful for introspection and understanding objects and their attributes. Three such tools are dir() , __dict__ , and help() . 1. dir() The dir() function returns a list of the attributes and methods of an object. It can be used on any object to see its properties. # Using dir() on a list example_list = [ 1 , 2 , 3 ] print ( dir ( example_list )) Output: ['__add__', '__class__', '__contains__', ... , 'append', 'clear', 'copy', ...] 2. __dict__ The __dict__ attribute is a dictionary representation of an object's attributes. It shows the object's attributes and their values. # Define a simple class class Person : def __init__ ( self , name , age ): self . name = name self . age = age # Create an inst...