Anonymous user
Ethiopian multiplication: Difference between revisions
m
→{{header|Python}}
(→{{header|Python}}: whoops, update example output aswell) |
|||
Line 2,388:
return result</lang>
Using some features which Python has for use in functional programming. The example also tries to show how to mix different programming styles while keeping close to the task specification
Note: Although the definition of column2 could theoretically generate a sequence of infinite length, izip will stop producing values (and so provide the necessary stop condition) when any of the
When not using the tutor, table will be a generator, which is efficient and does not store intermediate values.
|