Built-in function help
displays the docstring from a function definition. For example, consider this function:
def area(base, height): """(number, number) -> number Return the area of a triangle with dimensions base and height. """ return base * height / 2
Calling help
on function area
produces this output:
>>> help(area) Help on function area in module __main__: area(base, height) (number, number) -> number Return the area of a triangle with dimensions base and height.