Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Auto Painting by tokyoamado
def checkio(capacity, number):
n_set = min(capacity, number)
work = ('0123456789'[:number] * 2).ljust(((number * 2 - 1) // n_set + 1) * n_set)
return ','.join(''.join(xs).strip() for xs in zip(*[iter(work)] * n_set))
Jan. 13, 2018