Smallest multiple: Difference between revisions
m
→{{header|Python}}: simplify
m (→{{header|Python}}: simplify) |
|||
Line 474:
from functools import reduce
def lcm(a,
""" least common multiple """
return int(abs(a
for i in [10, 20, 200]:
print(str(i
</lang>{{out}}
<pre>
10
20
200
</pre>
|