Lesson 16: More magic methods — __eq__ and __len__
In lesson 5 you discovered __str__ teaches print to talk to your object. Today we extend the magic: __eq__ teaches == to compare objects by content, and __len__ teaches len() to measure them. Your objects become first-class citizens of the language.