Built-in Functions
help()
Open Python's built-in help system for a topic.
help(request=None)
In an interactive Python session, use a pattern such as help(str) to read documentation for a type, function, or module. It prints a help page rather than returning useful data.
The example stays non-interactive so it can run anywhere without printing a long help page.
Parameters
| Name | Description |
|---|---|
| request | Optional object or topic name to look up. |
Returns
None; help text is printed to the screen.
Try it
Run it and change it
topic = "Use help(str) to learn about strings." print(topic)