C1_w3 cost function error

hello,
when I finish the cumpute_cost function and run the cell below it I get the following error : TypeError: unsupported format string passed to numpy.ndarray.format
I tried everything I can to resolve this but I couldn’t I even tried to do it exactly like the hint but this error keeps appearing can anyone help me with this?

Hello,

Your return value should be a scalar/float value but your codes are written in a way that it return value is an numpy array, so you are getting this error.

Kindly check again your grader cell and compare with the hints given below the grader cell to do correction.

If you are unable to still resolve, let us know.

Regards
DP