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

from functools import wraps

def decorator_func(func):

    @wraps(func)

    def wrapper(*args, **kwargs):

        return func(*args, **kwargs)

    return wrapper

@decorator_func

def square(x):

    return x**2

print(square.__name__)

1) square

2) wrapper

3)decorator_func  

4) Error

1 Answer

0 votes
by
square
...