Answers for "factors addition in pyhone"

1

factors addition in pyhone

def factor(num):
  factor = [1]
  for i in range(2,num+1):
     if num%i==0:
         factor.append(i)
  return sum(factor)
Posted by: Guest on November-23-2020
0

factors addition in pyhone

print(factor(30))
Posted by: Guest on November-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language