from fractions import Fraction num1=Fraction(1, 3) num2=Fraction(1, 7) print(num1*num2)
import fractions print(fractions.Fraction(1.5)) print(fractions.Fraction(5)) print(fractions.Fraction(1,3))