What is the output of the following Python code?
class A:
l = []
a, b = A(), A()
a.l.append(1)
b.l.append(2)
print(A.l, len(a.l))- A[1] 1
- B[2] 1
- C[1, 2] 2
- D[] 0
Correct answer: C
What is the output of the following Python code?
class A:
l = []
a, b = A(), A()
a.l.append(1)
b.l.append(2)
print(A.l, len(a.l))