# calculate the value of our cost function for each w w w_array = np.array(w_list) cost_array = (w_array - 3)**2