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


Answer =

help() function help, when it is provided with a program-name or a module-name or a function-name as an argument, it displays the documentation of the argument as help.

The dir() function returns a list of all the attributes within in an object - these could be either data values or methods, and the list includes private and magic methods.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post