Python help() function
Published February 16, 2022The help() method in Python is used to acquire information about the object passed during the call. It accepts an optional argument and returns information on how to use it. If no parameter is specified, the Python help console is displayed.
The Python help() function displays documentation for keywords, modules, classes, and other objects.
Syntax
The help() function has the following simple syntax:
help(object for which we request help) |
Example
In this example, we are going to enquire about the information of the print function
help(print) |
Output
![]() |
Article Contributed By :
|
|
|
|
332 Views |