Lesson 5: __str__ — how an object prints itself
What happens when you print an object? Without preparation you get odd text like <__main__.Dog object at 0x...>. In this lesson we meet __str__ — a magic method that teaches the object to present itself nicely.