Sorry, I am not sure if people understand my problem.
Let me explain it again.
I have a function called add which takes two arguments and return the addition of them arguments.
Here is my add function:
So if add(2,5) then it will return 2*(4)+5 = 13, if add(3,6) then it will return 3*(4)+6 = 18.
Let me explain it again.
I have a function called add which takes two arguments and return the addition of them arguments.
Here is my add function:
def add(first, second): return first+secondI now want to decorate this function so that the first argument is always multiplied by 4 and then added to the second argument.
So if add(2,5) then it will return 2*(4)+5 = 13, if add(3,6) then it will return 3*(4)+6 = 18.