Hi, I was trying to simplify the code:
header = []
header.append(header1)
header.append(header2)
header.append(header3)
header.append(header4)
header.append(header5)
header.append(header6)
where:
header1 = str(input.headerOut1)
header2 = str(input.headerOut2)
header3 = str(input.headerOut3)
header4 = str(input.headerOut4)
header5 = str(input.headerOut5)
header6 = str(input.headerOut6)
I had wanted to use a for loop, like:
headerList = []
for i in range(6)
headerList.append(header+i)
however, python won't recognize that header+i represents the string header1. Is there any way to simplify this code or get the for loop to work? Thank you so much!