TypeError: unsupported format string passed to list.__format__

One trick is to solve this:

'{:15}'.format('{}'.format([1,2,3]))

Leave a Comment