Compilation error


Facing Continous error not able to compile the code

The error message suggests that Python f string formatting doesn’t support numpy arrays. I took a fast read through the string formatting doc and didn’t find anywhere that said it does or doesn’t but maybe I missed it?

I did find this …although some of the formatting options are only supported by the numeric types…

Perhaps instead consider incorporating

https://numpy.org/doc/stable/reference/generated/numpy.array2string.html


Please Give me a detailed Solution for that even I write the code following all the hint section


Please Help me in this problem

@gent.spah sir please help me out from this problem

f_wb must be a scaler value.

Which is probably what was wrong in the first error, too. It wasn’t that the string formatting was incorrect, it was that the type of cost was incorrect; it shouldn’t have been an array.