The dir Function : Dir : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Dir »

 

The dir Function


The dir Function




#dir returns a list of the attributes and methods of any object: modules, functions, 
#strings, lists, dictionaries-pretty much anything.

li = [] 
print dir(li)                                            

d = {} 
print dir(d)                                             

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Buildin Function
» Dir