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

book
help()

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:

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


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

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6

Pergunte à IA

expand
ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt