PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
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 mentioned
Show Answer
Next Question
Correct Answer:
D
Explanation: Execute in shell to verify.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap