Consider these two lists:
a = [1, 2, 3]
b = [4, 5, 6]
The following line gives me the sum of elements in the same index:
c = [a + b for a, b in zip(a, b)]
Now I have:
[5, 7, 9]
Here is the problem:
my_list = [[1, 0, 1], [-1, 0, 0], ...]
How do I apply list comprehension to sum up a dynamic number of sublists and return a single list like above?