0
What is the output of the following Python code?
def deco(f):
def wrap(x):
return f(x) + 1
return wrap
@deco
def g(x):
return x * 2
print(g(3))- A6
- B7
- C8
- D5
Correct answer: B
What is the output of the following Python code?
def deco(f):
def wrap(x):
return f(x) + 1
return wrap
@deco
def g(x):
return x * 2
print(g(3))