Tag: The parameter keyword that represents the clear complete Def function call function returns the Python full stack
Functions: Encapsulation and definition of code blocks and functions
Grammar:
def function name (): function body
function returns: Return
Parameters of the function
Formal parameters-arguments and arguments
Formal parameters:
The variable that is written at the position of the function declaration is called the parameter. form of a complete. Indicates that this function requires XXX
Actual parameters:
The value passed to the function at the time of the function call. The information that is passed to the function when it is called an argument, in practice. represented to the function xxx
To pass the parameter:
The process of passing the actual parameter to the formal parameter when the function is passed is called a reference.
Classification of parameters:
Three types of arguments:
1. Position parameters
2. Keyword parameters
3. Mixed parameter, position parameter must precede keyword parameter
Three types of formal parameters
1. Position parameters
2. Default value parameter
Python Full Stack development 09