TypeError: unsupported format string passed to numpy.ndarray.__format__

Hello @Mohamed.Hesham.nour,

You have less than 10 lines of code, so after each line, I suggest you to add a new line to print the content of the assigned variable in the previous line. Below is an example:

Screenshot from 2022-11-02 18-59-29
Source: general code debugging tips

As soon as you see your printed variable being an array or a list, there is the problem.

Raymond

2 Likes