Computer Science
What is the usage of help( ) and dir( ) functions.
Python Libraries
3 Likes
Answer
help() function — This function is used to display docstrings of a module as documentation. The syntax is : help(<module-name>)
dir() function — This function is used to display all the names defined inside the module. The syntax is : dir(<module-name>)
Answered By
2 Likes
Related Questions
What is Python PATH variable ? What is its significance ?
In which order Python looks for the function/module names used by you.
Name the Python Library modules which need to be imported to invoke the following functions :
(i) log()
(ii) pow()
(iii) cos
(iv) randint
(v) sqrt()
What is dot notation of referring to objects inside a module ?