Skip to content

Help() function in Python

Python Help() function is called the built-in Python help system. It is used to display the documentation of modules, functions, classes, keywords, etc. 

help(object)

Help() function in Python

A simple example code checks the documentation of the print function in the python console

help(print)

Output:

Help() function in Python

No argument is passed to help()

help('random thing')

info = help()  # No argument
print(info)

Output:

No Python documentation found for ‘random thing’.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

Welcome to Python 3.10’s help utility!

Do comment if you have any doubts or suggestions on this Python function topic.

Note: IDE: PyCharm 2021.3.3 (Community Edition)

Windows 10

Python 3.10.1

All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.

1 thought on “Help() function in Python”

Leave a Reply

Your email address will not be published. Required fields are marked *