

InterviewSolution
Saved Bookmarks
1. |
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.(a) obj.__str__()(b) str(obj)(c) print obj(d) all of the mentionedI had been asked this question in my homework.Question is from Strings topic in section Strings of Python |
Answer» RIGHT answer is (d) all of the mentioned Easiest EXPLANATION - EXECUTE in shell to verify. |
|