Python help() function

Published February 16, 2022

The 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

Python help function

 

Download Source code

 

Article Contributed By :
https://www.rrtutors.com/site_assets/profile/assets/img/avataaars.svg

332 Views