I mean your first post. You have seven variables but not seven '{}' to print them.
This part:
This part:
print(hdr62.format( '${:,.0f}'.format(ETE).rjust(12, ' '), '${:,.0f}'.format(ETFI).rjust(12, ' '), '${:,.0f}'.format(ETC).rjust(12, ' '), '${:,.0f}'.format(ETTA).rjust(12, ' '), '${:,.0f}'.format(ETFE).rjust(12, ' '), '${:,.0f}'.format(ETFFI).rjust(12, ' '), '${:,.0f}'.format(ETFC).rjust(12, ' ')))hdr62 holds one '{}' but the format has seven arguments.
In [1]: print('{:>13}'.format( ...: '${:,.0f}'.format(1).rjust(12, ' '), ...: '${:,.0f}'.format(2).rjust(12, ' '), ...: '${:,.0f}'.format(3).rjust(12, ' '), ...: '${:,.0f}'.format(4).rjust(12, ' '), ...: '${:,.0f}'.format(5).rjust(12, ' '), ...: '${:,.0f}'.format(6).rjust(12, ' '), ...: '${:,.0f}'.format(7).rjust(12, ' '))) $1 In [2]: