Question 86
What is the output of the following Python code?
def my_dec(func):
def wrapper(a, b):
return func(a, b) + 10
return wrapper
@my_dec
def add(a, b):
return a + bprint(add(3, 4))
add(3, 4) calls wrapper(3, 4) which returns add(3, 4) + 10 = 7 + 10 = 17.