I am trying to split a list of lists, each with n items, into a list of twice as many lists, each containing n/2 items.
E.g.
list_x = [[list_a], [list_b]]
list_a = ['1','2','3','4','5','6']
list_b = ['7','8','9','10','11','12']
I require:
list_x2 = [[list_a2], [list_b2], [list_c2], [list_d2]]
Where:
list_a2 = ['1','2','3']
list_b2 = ['4','5','6']
list_c2 = ['7','8','9']
list_d2 = ['10','11','12']
I have tried: All possibilities to split a list into two lists - but would appreciate insight on how to extend some of the mentioned solutions to the 'lists with a list' scenario.
Any assistance appreciated.