2
What is the output of the following code?
class A:
count = 0
def __init__(self):
A.count += 1
A(); A()
print(A.count)Easy
What is the output of the following code?
class A:
count = 0
def __init__(self):
A.count += 1
A(); A()
print(A.count)Log in to join the discussion.