+ 1
What is a parameter
Can you explain it to me?
2 Answers
+ 6
AĀ parameterĀ is a variable in a method definition. When a method is called, theĀ argumentsĀ are the data you pass into the method's parameters.ParameterĀ is variable in the declaration of function.Ā ArgumentĀ is the actual value of this variable that gets passed to function.
https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/function-argument
+ 4
A parameter is arguments needed to run sonething like a function. If I have something like
def function(x, y):
the parameter is the values needed to use the function in the parenthesis, so x and y