Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 4)
4.
What is the purpose of the
__str__
method?
Answer: Option
Explanation:
The
__str__
method is called when the str()
function is used on an object. It is used to provide a human-readable string representation of the object.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers