CBSE Class 12 Computer Science Question 42 of 62

Using Python Libraries — Question 10

Back to all questions
10
Question

Question 10

What is the usage of help( ) and dir( ) functions.

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>)