Anonymous user
Ethiopian multiplication: Difference between revisions
m
→{{header|Python}}: -r -> -s
(→{{header|Python}}: Use takewhile) |
m (→{{header|Python}}: -r -> -s) |
||
Line 2,401:
arg = function(arg)
def ethiopian(multiplier, multiplicand):
table = [(p, q) for p, q in
izip(
result = sum(q for p, q in table if not even(p))
return result</lang>
|