Q. What is the utility of the built-in function help()?
Answer =
Python's built-in function help() is very useful. 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. It also displays the doc-string within its passed-argument's definition.
For example:
>>> help (math)
• It will display the documentation related to module math.
• It can even take function name as argument.
For example:
>>>help (math.sqrt())
• The above code will list the documentation of math.sqrt() function only.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )