Python help() Function
Description
help()The function is used to view detailed descriptions of the purpose of a function or module.
Syntax
help syntax:
help([object])
Parameter description:
- object -- object;
Return Value
Returns the help information for the object.
Example
The following example demonstrates how to use help:
>>>help('sys') # View help for the sys module......display help information......
>>>help('str') # View help for the str data type......display help information......
>>>a = [1,2,3]
>>>help(a) # View help for list......display help information......
>>>help(a.append) # Display help for the append method of list......display help information......
Python Built-in Functions