Let's say we have a function, x_add
:
def x_add(x,y):
k = x + y
return k
And I want a variable to hold the arguments for x,y
:
p = (2,4)
Then I want to perform the funciton with this variable as the argument:
x_add(p)
Resulting in:
TypeError: x_add() takes exactly 2 arguments (1 given)
Is there any way to do this?