• + 0 comments

    Python3 :

    class Calculator(AdvancedArithmetic):
        def divisorSum(self, n):
            divisor = []
            for num in range(1,n+1):
                if n % num == 0:
                    divisor.append(num)
            return sum(divisor)