Apr-14-2020, 08:18 PM
Hey, I beleive it's a relatively simple quiestion although i didn't find any simple answer in Google.
I'd like to create a function that unpacks a list of lists and create a new list that sums up the variables which are in the same index.
For instance: [[1,1],[1,3]] ---> [2,4]
or [[1,1,1],[1,0,0],[0,0,100]] ---> [2,1,101]
Not suppose to be very complex.
Thanks!
I'd like to create a function that unpacks a list of lists and create a new list that sums up the variables which are in the same index.
For instance: [[1,1],[1,3]] ---> [2,4]
or [[1,1,1],[1,0,0],[0,0,100]] ---> [2,1,101]
Not suppose to be very complex.
Thanks!