+ 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