I have a large list of lists, for example:
list = [['a'], ['b'], ['c'], ['1234'], ['d'], ['e'], ['g'], ['h'], ['i'], ['56']]
I would like to combine every 5 lists into one list of elements and so on. I am having total of 150995 lists inside a list.
Expected output:
new_list = [['a' , 'b', 'c', '1234', 'd'], ['e', 'g', 'h', 'i', '56']]
I tried with below code. but it is flattens to one list.
list(zip(*list)[0])
How can I do this?