I am learning Object-oriented programming through python. I am trying to write a program to write three special methods for a Fraction class that overload operators to perform rich comparisons between a and b. (a < b, a >b, a==b). A sample would be:
>>>a = Fraction(1, 2)
>>>b = Fraction(1, 3)
>>>a==b
False
>>>a > b
True
>>>a < b
False
>>>a = Fraction(4, 8)
>>>b = Fraction(2, 4)
>>>a ==b
True
>>>a > b
False
>>>a < b
False
I really do not understand what it is asking to do. Any help on what to do to help get me started would be great. Thank you.