Question: Implement a function listSum that accepts two arguments, each a list of numbers. Both lists have the same number of elements. The function then returns

Implement a function listSum that accepts two arguments, each a list of numbers. Both lists have the same
number of elements. The function then returns a list of numbers that is the component wise sum of the input
lists. That is, at each position in the returned output list, the value is the sum of the two numbers at the
corresponding positions of the input lists. (See the comment on the first example)
listSum([1,2,3
4,1,5])#5=1+4,3=2+1,8=3+5
[5,3,8]
> listSum ([1,2,3,4
2,3,-7,-10])
[3,5,-4,-6]
 Implement a function listSum that accepts two arguments, each a list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!