Python help() Function
Description
help() The function displays detailed documentation about the purpose of a function or module.
Syntax
help syntax:
help([object])
Parameter Description:
- object -- the object;
Return Value
Returns help information for the object.
Example
The following examples demonstrate 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 information for the list data type
... display help information ... >>>
help
(
a
.
append
)
Display help for the append method of list
... display help information ...
Python built-in function