I have a list like this:
list1=[['xx', 'xx', 'xx', 'xx', 'xx'],
['yy', 'yy', 'yy', 'yy', 'yy'],
['zz',
'zz',
'zz',
'zz',
'zz',
'zz',
'zz',
'zz',
'zz'],
['tt', 'tt', 'tt', 'tt', 'tt']
.
.
.
n]
I would like to have a method to cast the nested lists into different lists. However, as the length of list1 differs every time my program executes I want to have an automated procedure
For example, the expected outcome looks like that.
list1= ['xx', 'xx', 'xx', 'xx', 'xx']
list2= ['yy', 'yy', 'yy', 'yy', 'yy', 'yy']
list3= ['zz', 'zz', 'zz', 'zz', 'zz', 'zz', 'zz', 'zz', 'zz']
list4= ['tt', 'tt', 'tt', 'tt', 'tt']
.
.
.
listn=[...........]
Any ideas?