Anonymous user
Ethiopian multiplication: Difference between revisions
m
→{{header|Python}}
(→{{header|Python}}: Move table out of function) |
|||
Line 2,407:
def ethiopian(multiplier, multiplicand):
result = sum(q for p, q in table(multiplier, multiplicand)
if not even(p))
return result</lang>
|