Hello is there better way to sum multiple arrays? Because what I did is nested loop and i am not fan of this solution.
a = [1,2,8,7,4], [6,7,2,1,6], [7,5,1,2,3]
sum = []
total = 0
for i in a:
for j in i:
total = total + j
sum.append(total)
print(sum[-1])
expected output: 62