Python Dunder Methods for Beginners (Part 1): Make Your Objects Come Alive
You've built a class. You print it. Python spits out something like <__main__.Device object at 0x7f3b2c>. What even is that? Here's what's actually going on and how to fix it.