What is an argument in python programming?
Answers
Answered by
1
Arguments are usually contrasted with parameters, which are names used to specify what arguments a function will need when it is called. When a function is called, each parameter is assigned one of the argument values.
Answered by
1
Argument in python
Explanation:
- A variable or an object that is passed inside the parameter of the user-defined function is known as an argument.
For Example:
def function_name(a):
b=a+2
- The value of an argument is initialized at the time of declaration that is also known as default argument.
For Example:
def function_name(a=7)
b=a+2
- The value of an argument is also passed at the time of calling of the function.
For Example:
def function_name(a):
b=a+2
#calling of function
function_name(5)
Learn More:
brainly.in/question/12488884
Similar questions