You are viewing a single comment's thread. Return to all comments →
Python 3
class Calculator(AdvancedArithmetic): def divisorSum(self, n): sum = 0 for i in range(1, n+1): if n % i == 0: sum += i return sum
Seems like cookies are disabled on this browser, please enable them to open this website
Day 19: Interfaces
You are viewing a single comment's thread. Return to all comments →
Python 3