Python: Builtin Help

By Xah Lee. Date: . Last updated: .

help() function

in terminal, start Python by python, then type help(). Type exit to exit.

python help 2022-06-27 Pmz6G
python help 2022-06-27

Windows, Python Doc in .CHM Format

On Microsoft Windows, python comes with help file in .CHM format.

you can open it at, example: c:/Python39/Doc/python391.chm

python help chm 2022-06-27
python help chm 2022-06-27

pydoc

pydoc is a command-line tool. It is installed on linux with python by default. (not installed on Microsoft Windows by default)

In terminal type pydoc to get started. It'll print a summary of how to use it.

For python 3, type pydoc3.

Type f to page down, b to page up, q to exit.

For example, type:

pydoc while
Language keyword, function.
pydoc dict
Language objects.
pydoc re
Module/package doc.
pydoc 2019-03-12 d8hg2
pydoc 2019-03-12