Question: 1. Modify the Python function add_max() below so that it takes an array x as input, adds the largest entry of x to each entry
1. Modify the Python function add_max() below so that it takes an array x as input, adds the largest entry of x to each entry of x and returns the resultant array. 2. Describe at least one sanity check that your code should pass and verify that your code indeed passes your sanity check. 1) def add_max(x): Provide a brief description of the function here. insert some code here that processes the input x return * # don't forget to return the correct thing (put the description of the sanity check directly in this text cell) verify that your sanity check is satisfied in some Sample cases in this code cell
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
