0

Dir() in Python

Can't understand what do dir(). Do u can explain it easily?

18th Jul 2019, 11:12 AM
Deprion
Deprion - avatar
3 Answers
+ 1
Dir returns list of the attributes and methods of any object (say functions , modules, strings, lists, dictionaries etc.) Try this: import random import math print(dir())
18th Jul 2019, 11:36 AM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar
0
Thx
18th Jul 2019, 8:02 PM
Deprion
Deprion - avatar