Python Programming - Polymorphism - Discussion
Discussion Forum : Polymorphism - General Questions (Q.No. 55)
55.
What is the purpose of the
__str__()
method in Python classes?
Answer: Option
Explanation:
The
__str__()
method is used to provide a human-readable string representation of an object for display purposes.
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