On Tue, Dec 13, 2011 at 10:09 PM, Emile van Sebille wrote:
> On 12/13/2011 12:39 PM Kaixi Luo said...
>
> Hello,
>>
>> I want to create a list of lists of lists (listB) from a list of lists
>> (listA). Below there's a snippet of my code:
>>
>> list1
Hello,
I want to create a list of lists of lists (listB) from a list of lists
(listA). Below there's a snippet of my code:
list1 = [[] for i in range(9)]
# some code here...
listA = [[] for i in range(3)]
count = 0
for i in range(3):
for j in range(3):
listB[i].append(listA[count])