what are functions in python
Answers
Answered by
0
Answer:
There are three types of functions in Python:
Built-in functions, such as help() to ask for help, min() to get the minimum value, print() to print an object to the terminal,… You can find an overview with more of these functions here.
User-Defined Functions (UDFs), which are functions that users create to help them out; And
Anonymous functions, which are also called lambda functions because they are not declared with the standard def keyword.
Explanation:
Answered by
0
def that marks the start of the function header.
The first string after the function header is called the docstring and is short for documentation string. It is briefly used to explain what a function does.
The return statement is used to exit a function and go back to the place from where it was called.
Similar questions
English,
6 months ago
Science,
6 months ago
Math,
6 months ago
CBSE BOARD XII,
11 months ago
Math,
1 year ago