Just started programming python. I have a question with this error IndexError: tuple index out of range. This app is somewhat reading large amount of log files.
my example list is:
arrline = ['Array0', 'Array1', 'Array2', 'Array3', 'Array4', 'Array5', 'Array6:', 'Array7', 'Array8', 'Array9', 'Array10', 'Array11', 'Array12', 'Array13', 'Array14', 'Array15', 'Array16']
when I use
tmp1 = '{0}{1}{12}{5}{6}{17}'.format(*arrline)
print tmp1
I end up getting IndexError: tuple index out of range.
but when I try
tmp1 = '{0}{1}{2}{3}{4}{5}'.format(*arrline)
It doesn't get any errors.
Any help is greatly appreciated.
{17}would needarrlineto have 18 items at least.