A
Q. What is the output of the following code?
Code:
class Test:
count = 0
def __init__(self):
Test.count += 1
print(Test.count)
count = 0
def __init__(self):
Test.count += 1
print(Test.count)
- Correct Answer - Option(A)
- Views: 18
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.