Зміст курсу
Mastering Python: Annotations, Errors and Environment
Mastering Python: Annotations, Errors and Environment
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)
Дякуємо за ваш відгук!