I'm trying to use the following code on a list of lists to create a new list of lists, whose new elements are a certain combination of elements from the lists inside the old list...if that makes any sense! Here is the code:
for index, item in outputList1:
outputList2 = outputList2.append(item[6:].extend(outputList1[index+1][6:]))
However, I get a "Too many values to unpack" error. I seem to even get the error with the following code:
for index, item in outputList1:
pass
What could I be doing wrong?