ReferenceBuilt-in functions
help()
Prints the documentation for an object, which is often faster than searching the web.
Signature
help(object)Parameters
| Name | Means |
|---|---|
object | any object, function or module |
Returns
Nothing; it prints.
Example
Python
def area(w, h):
"""Return the area of a rectangle."""
return w * h
print(area.__doc__)Output
Return the area of a rectangle.