Q. What is the output of this code?
Code:
class A:
def __init__(self):
self.value = 10
obj = A()
print(obj.value)
β
Correct Answer: (B)
10
Explanation: The `__init__` method sets `value` to 10.