Ad
Code
Diff
  • def sumd(arr):
        return sum(arr)
        
    • def sum(arr):
    • result = 0
    • for i in arr:
    • result += i
    • return result
    • def sumd(arr):
    • return sum(arr)