Mar-19-2018, 11:04 AM
How do I pass an argument z to my decorator function? Here is my code:
def partial(func,z): def wrapper(first, second): first = first*z return func(first, second) return wrapper @partial() #I need to pass z here, how do I do this here? def add(first, second): return first+second