Clear
Round
Mock Interview
Tracks
Questions
Learn
Resume
Pricing
Login
Get started
← All questions
Medium
Python
What is the `__str__` method in a class and when is it used?
What is the `__str__` method in a class and when is it used?
Start mock interview
View answer