Question: 010 Write a function vector_mult(L1, L2) that performs element-wise multiplication between the elements in L1 and L2 . You may assume that Li and L2
010 Write a function vector_mult(L1, L2) that performs element-wise multiplication between the elements in L1 and L2 . You may assume that Li and L2 are the same length. You must use map() in the vector_mult function, although you may write a helper function. Use lambda functions where you can (le, where the function can be formed as an expression). YOUR CODE MERE raise Not implementederror) In Printing old A 1, 2, 3 B-15, 10, 1) print/vector_multi )) should be 15, 29, ) Testing cell A-15, 3, 1, 21 B-12, 1, 4, 31 assert vector_multis, -- (10, 3, 4, 61
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
