how to test if a fraction can be simplified python code example
Example: reduced fraction python
>>> from fractions import Fraction
>>> Fraction(98, 42)
Fraction(7, 3)
>>> from fractions import Fraction
>>> Fraction(98, 42)
Fraction(7, 3)