What is the output of the following code?

Category: PythonWhat is the output of the following code?
Editor">Editor Staff asked 2 years ago

What is the output of the following code?


def bind(func):func.data = 9
return func@binddef add(x, y):
return x + yprint(add(3, 10))
print(add.data)

1 Answers
Editor">Editor Staff answered 2 years ago

Answer is a) -13 9