Ad

Decorated function

def f1(func):

    def wrapper(*args, **kwargs):

        print('x')

        v = func(*args, **kwargs)

        print('z')

        return v

    return wrapper

@f1
def f(a, b=7):

    print(a, b)
    
@f1
def add(x, y):

    return x+y

print(add(7,3))