Homonym: __lt__ (LessThan)
The `__lt__` method in Python is a special method used to define the behavior of the less-than operator (`<`) for custom objects. When you implement this method in a class, you can specify how instances of that class should be compared based on their attributes. For example, if you have a class called Person with an attribute age, you can use `__lt__` to compare two Person objects based on their ages.
When you use the less-than operator between two objects of a class that has the `__lt__` method defined, Python automatically calls this method. If the method returns `True`, it means the left object is considered less than the right object; otherwise, it returns `False`. This allows for intuitive comparisons and sorting of custom objects in collections like lists.