Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre help() | Annotations
Mastering Python: Annotations, Errors and Environment

bookhelp()

While IDEs can provide hints for functions, these hints may not be available in environments such as Jupyter Notebook or console interpreter. To get information about a function or object, you can use the help() function:

123456
def add(a: int, b: int) -> int: """This function receives two integer arguments and returns its sum.""" return a + b help(add)
copy

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Awesome!

Completion rate improved to 4.35

bookhelp()

Glissez pour afficher le menu

While IDEs can provide hints for functions, these hints may not be available in environments such as Jupyter Notebook or console interpreter. To get information about a function or object, you can use the help() function:

123456
def add(a: int, b: int) -> int: """This function receives two integer arguments and returns its sum.""" return a + b help(add)
copy

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6
some-alt