I am new to python, i have a confusion about when we import a module, e.g. import os or any other module, how to know the available methods in each of the module i have imported? Please help.
Asked
Active
Viewed 130 times
-2
-
1Or just [RTFM](https://docs.python.org/2/library/os.html). – jonrsharpe Jan 12 '15 at 07:50
1 Answers
2
import(os)
help(os)
That will give you a human-readable help page. Or to get just the function and class names:
dir(os)

John Zwinck
- 239,568
- 38
- 324
- 436
-
You're welcome. If this answer helped you, please accept it by clicking the checkmark on the left of it. – John Zwinck Jan 12 '15 at 07:57