Q. What is the output of the following code?
Code:
class Test:
count = 0
def __init__(self):
Test.count += 1
print(Test.count)
β
Correct Answer: (A)
0
Explanation: No object is created, so `__init__` is never called. Class attribute `count` remains 0.