If A Class Defines The Strself Method For An Object Obj For The #242
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Strings - Python Strings - Quiz No.4.
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
obj.__str__()
str(obj)
print obj
all of the mentioned