help()

A built-in function that shows the documentation, including the docstring, for a function, method, class or module.

In more detail

help(str.find) explains find; help(math) describes the whole module. In a terminal it may open a pager: press q to leave. Your own docstrings appear in help too.

Example

help(str.split)

Related terms

Taught in

References