• + 0 comments
    def product(fracs):
    
        if len(fracs) == 1:
            return fracs[0].numerator, fracs[0].denominator
        else:
            t = reduce( lambda x, y : x * y, fracs )
            return t.numerator, t.denominator