----> 7 print(‘Cost at initial w (zeros): {:.3f}’.format(cost))
TypeError: unsupported format string passed to function.format
function.format indicates that your cost is a function but that is problematic because we can’t format a function into a string of 3 decimal places. We can only do this for a number, not a function. Look at the following examples and you should be able to tell the difference.
Now, the cost is supposed to be a floating-point number, but yours is a function, so you need to check your code to find out why your compute_cost function isn’t returning a number.