dir function returns a list of the attributes and methods of any object : Dir : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Dir »

 

dir function returns a list of the attributes and methods of any object


li = [] 
print dir(li)                                   

d = {} 
print dir(d)                                         

import math
dir(math)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Function
» Dir