0 votes
in Python by
What is the ouput of the following code?

def decorator_func(func):

    def wrapper(*args, **kwdargs):

        return func(*args, **kwdargs)

    wrapper.__name__ = func.__name__

    return wrapper

@decorator_func

def square(x):

    return x**2

print(square.__name__)

1) decorator_func

2) None

3) wrapper

4) square

1 Answer

0 votes
by

4) square

...