← All questions
MediumPython

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?