Question: python Please write a function named vecadd(a,b) which takes two lists of float variables a and b. If they are of the same length, function
Please write a function named vecadd(a,b) which takes two lists of float variables a and b. If they are of the same length, function should return a new list whose each element is the sum of the corresponding elements in the input lists (as in a vector summation like (11, 23. 10) + (4,5,5)=(15, 28, 15)). If the input lists have different lentgths, then the function should return the string "Size mismatch
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
