I have some lists of numbers:
[1, 2, 3, 4, 5]
[2, 3, 4, 5, 6]
[3, 4, 5, 6, 7]
How can I add these lists' elements, assuming that all of the lists that I'm using are the same length?
Here's the kind of output I'd like to get from doing this to the above lists.
[6, 9, 12, 15, 18]
I know that I'll need a loop of some kind - but how can I do it elegantly?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…