str.format/% errors: IndexError: Replacement index 1 out of range for positional args tuple; not enough arguments for format string (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
'{}{}'.format(1); '{a}'.format(b=1) -> KeyError: 'a'; '{'.format(1) -> "Single '{' encountered in format string"; '%s'%(1,2) -> 'not all arguments converted during string formatting'; '%d'%'a' -> '%d format: a real number is required, not str'.