Ad
Code
Diff
  • def sumi(arr=[0]):
        return sum(arr)
    • def sum(arr):
    • if len(arr) == 1:
    • return arr[0]
    • else:
    • return list(map(lambda x: x + x, arr))[-1]
    • def sumi(arr=[0]):
    • return sum(arr)