Python Help

Aug 10, 2016

Example of using inbuilt help in Python.

Module:

>>> help(math)

Help on module math:

NAME
    math

MODULE REFERENCE
    https://docs.python.org/3.5/library/math.html

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

DESCRIPTION
    This module is always available.  It provides access to the
    mathematical functions defined by the C standard.

FUNCTIONS
    acos(...)
        acos(x)
...

Function:

>>> help(math.factorial)

Help on built-in function factorial in module math:

factorial(...)
    factorial(x) -> Integral

    Find x!. Raise a ValueError if x is negative or non-integral.

Press space to go down, or use the arrow keys (on mac) to go up/down.

q to exit.