Marketing Proposal.-3
Marketing Proposal.-3
ARDAK ARTYKBAYEVA
Python
Functions
01.
Example Example
This function expects 2 arguments, and gets 2 arguments: This function expects 2 arguments, but gets only 1:
If you try to call the function with 1 or 3 arguments, you will get an error:
Keyword Arguments
01
You can also send arguments with the key = value syntax.
This way the order of the arguments does not matter.
Default Parameter Value
The following example shows how to use a default parameter value.
If we call the function without argument, it uses the default value:
Passing a List as an Argument
Number 01 Number 02