Ad
Code
Diff
  • def SumDigitsOf(integer):
        return sum(map(int, str(integer)))
    • def SumDigitsOf(integer):
    • return sum([int(value) for value in str(integer)])
    • return sum(map(int, str(integer)))