Уменьшенный фракционный питон
>>> from fractions import Fraction
>>> Fraction(98, 42)
Fraction(7, 3)
Poised Pigeon
>>> from fractions import Fraction
>>> Fraction(98, 42)
Fraction(7, 3)
>>> from fractions import Fraction
>>> Fraction(0.25)
Fraction(1, 4)
from fractions import Fraction
num1=Fraction(1, 3)
num2=Fraction(1, 7)
print(num1*num2)