You are viewing a single comment's thread. Return to all comments →
def product(fracs): pro = fracs[0] for frac in fracs[1:]: pro *= frac return pro.numerator, pro.denominator
Seems like cookies are disabled on this browser, please enable them to open this website
Reduce Function
You are viewing a single comment's thread. Return to all comments →