Hopefully this helps
def perma_set_first_param_decorator(x): """ Decorates a two-argument function, replacing the first argument with the provided x value here. """ def wrapper(f): return lambda y: f(x, y) return wrapper @perma_set_first_param_decorator(2) def add(first, second): return first + second print(add(5)) # prints 7