filmov
tv
16.Parameters in Functions in Python - Positional and Default/Keyword arguments
Показать описание
in this video i have explained about Parameters in Functions in Python ,
Parameters in any programming language are the values or the variables the we sent to a funciton.
In Python Parameters can be classified into 2 categories
1.Positional Arguments
2. Keyword or Default arguments
Positional arguments are the values sent to a function when it is called and remember that they are created when the function is called
for example
def add ( x , y=10):
return x+y
in the above function x is considered as "Positional argument or parameter"
coming to Keyword or default arguments they are created when the function is defined not when the function is called
in the above example Y is considered as "Keyword argument"
More and detail examples are given in the video itself so prefer it please
16.Parameters in Functions in Python - Positional and Default/Keyword arguments
Subscribe and Share the Channel with your Computer Science Friends and Others who are interested LearningWithFaraz
Parameters in any programming language are the values or the variables the we sent to a funciton.
In Python Parameters can be classified into 2 categories
1.Positional Arguments
2. Keyword or Default arguments
Positional arguments are the values sent to a function when it is called and remember that they are created when the function is called
for example
def add ( x , y=10):
return x+y
in the above function x is considered as "Positional argument or parameter"
coming to Keyword or default arguments they are created when the function is defined not when the function is called
in the above example Y is considered as "Keyword argument"
More and detail examples are given in the video itself so prefer it please
16.Parameters in Functions in Python - Positional and Default/Keyword arguments
Subscribe and Share the Channel with your Computer Science Friends and Others who are interested LearningWithFaraz