I have a loop that gives me a list of lists of integers like the example bellow:
l1 = [[1,2],[7,8],[13,14],[19,20]]
l2 = [[3,4],[9,10],[15,16],[21,22]]
l3 = [[5,6],[11,12],[17,18],[23,24]]
The result I need is like a vertical extension of the lists. So the result should be:
l_final = [[1,2,3,4,5,6],[7,8,9,10,11,12],[13,14,15,16,17,18],[19,20,21,22,23,24]]
Assuming that I get those lists in a loop one by one, I think I cannot use all of them at once, so a solution like some_function(l1,l2,l3) is out of the scope. Ideally, the solution would work in this structure:
l_final = []
for loop gives me one listOFlists:
l1 = [[1,2],[7,8],[13,14],[19,20]]
l_final = # solution someone? :/
Could somebody help me, please?