You are viewing a single comment's thread. Return to all comments →
One can avoid import operator as one knows which mul to use from the class type.
import operator
mul
t = reduce(Fraction.__mul__, fracs)
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 →
One can avoid
import operator
as one knows whichmul
to use from the class type.