Good day! I wrote code to work with fractions:
spoilerclass Fraction:
def __init__(self, a, b):
self.a = a
self.b = b
def __str__(self):
return '{}/{}'.format(self.a, self.b)
def __add__(self, other):
return Fraction(self.a + other.a, self.b + other.b)
def __sub__(self, other):
return Fraction(self.a - other.a,...