Ad
Code
Diff
  • def sumi(arr=[0]):
        total = [n for n in arr]
        return sum(total)
    • def sumi(arr=[0]):
    • total = 0
    • for x in arr:
    • total+=x
    • return total
    • total = [n for n in arr]
    • return sum(total)