Python
About Lesson

Operator Overloading in Classes

Operator Class Methods
__sub__(self, other)
+ __pos__(self, other)
* __mul__(self, other)
/ __truediv__(self, other)
== __eq__(self, other)
!= __ne__(self, other)
< __lt__(self, other)
> __gt__(self, other)
<= __le__(self, other)
>= __ge__(self, other)