write a program to print the sum of all factor of number
Answers
Answered by
1
Answer:
Sum of all the factors of a number in Python
def factor(num):
factor = [1]
for i in range(2,num+1):
if num%i==0:
factor. append(i)
return sum(factor
Explanation:
please follow and like me
Answered by
1
Answer:
de factor( num), factor [1], factor .append 1
Similar questions