Question: -using paython -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,
-using paython -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"
Answer:(penalty regime: 0 %) Ace editor not ready. Perhaps reload page? Falling back to raw text area.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
