Polydivisible number: Difference between revisions

Content deleted Content added
m Programming example: better to define "previous" using a list comprehension (it's clear, concise, idiomatic and faster)
m Programming example: better to iterate directly on the list than using indexes (the index is used only to access the corresponding element in the list)
Line 321:
while not previous == []:
numbers.append(previous)
for in in range(0, len(previous)):
for j in range(0, base):
number = previous[i]n * base + j
if number % digits == 0:
new.append(number)