Question: language- python Bob, Daniela, and Luke make the following purchases: . Bob buys 3 fruit bowl #2's and 2 fruit bowl #3. Daniela buys 2
Bob, Daniela, and Luke make the following purchases: . Bob buys 3 fruit bowl #2's and 2 fruit bowl #3. Daniela buys 2 of each fruit bowl. Luke buys 10 fruit bowl #4s (he really likes apricots). Create a matrix A such that the matrix expression ABC evaluates to a length 3 column vector containing how much each of them spent. The first entry of the result should be the total amount spent by Bob, the second entry the amount sent by Daniela, etc. Complete the following block of code: def amount_spent(v, B): A = np.array([ [, 3, 2, el # Finish this 1) return A @BV
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
