I have the following two lists:
first = [1,2,3,4,5]
second = [6,7,8,9,10]
Now I want to add items of both lists into a new list.
output should be
three = [7,9,11,13,15]
I have the following two lists:
first = [1,2,3,4,5]
second = [6,7,8,9,10]
Now I want to add items of both lists into a new list.
output should be
three = [7,9,11,13,15]
Try the following code:
From docs
Here is another way to do it.It is working fine for me .
The easy way and fast way to do this is:
Alternatively, you can use numpy sum:
Perhaps the simplest approach: