Q. What will the following code print?
```python
class A:
def __init__(self, x):
self.x = x
a = A(10)
print(a.x)
```
```python
class A:
def __init__(self, x):
self.x = x
a = A(10)
print(a.x)
```
β
Correct Answer: (B)
10
Explanation: The constructor sets `self.x` to 10, so `a.x` is 10.