Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

interfaces

class Calculator(AdvancedArithmetic):
    def divisorSum(self, n):
        temp = []
        for i in range(1, n+1):
            if n%i == 0:
                temp.append(i)
        return sum(temp)
Source by programs.programmingoneonone.com #
 
PREVIOUS NEXT
Tagged: #interfaces
ADD COMMENT
Topic
Name
7+7 =