Question 11
What is the output of the following Python code?
class A:
def __init__{self}:
self.v = 1
def change(self):
self.v += 1a = A()
a.change()
getattr(a, 'change')()
print(a.v)
a.change() increments v to 2. getattr(a, 'change') retrieves bound method change, calling it increments v to 3.