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
for j in range(0, base):
number =
if number % digits == 0:
new.append(number)
|