Smallest multiple: Difference between revisions

m
→‎{{header|Python}}: Updated output alignment
m (→‎{{header|Python}}: Updated output alignment)
m (→‎{{header|Python}}: Updated output alignment)
Line 522:
def main():
'''Tests for n drawn from {10, 20, 200}'''
xs = [10, 20, 200, 2000]
w = len(str(max(xs)))
print(
'\n'.join([
f'{n:>4{w}} -> {smallestEvenlyDivisibleByOneToN(n)}'
for n in [10, 20, 200, 2000]xs
])
)
print(w)
 
 
9,655

edits