A
Q. What will the following code print?
Code:
class A:
def __str__(self):
return "Hello"
obj = A()
print(obj)
def __str__(self):
return "Hello"
obj = A()
print(obj)
- Correct Answer - Option(A)
- Views: 28
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.