Czynniki dodawane w pyhone
def factor(num):
factor = [1]
for i in range(2,num+1):
if num%i==0:
factor.append(i)
return sum(factor)
Troubled Tarantula
def factor(num):
factor = [1]
for i in range(2,num+1):
if num%i==0:
factor.append(i)
return sum(factor)
print(factor(30))