Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python help() Function

Python help() Function

Python built-in function Python built-in function


Description

help() The function displays detailed documentation about the purpose of a function or module.

Syntax

help syntax:


help([object])

Parameter Description:

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 Python built-in function