KnowledgeBoat Logo

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