0
What is the output of the following Python code?
class A:
def __str__(self): return "s"
def __repr__(self): return "r"
print(A(), [A()], str([A()]))- As [r] [s]
- Bs [s] [s]
- Cr [r] [r]
- Ds [r] [r]
Correct answer: D
What is the output of the following Python code?
class A:
def __str__(self): return "s"
def __repr__(self): return "r"
print(A(), [A()], str([A()]))