convert list of lists to list

antar2 desothier at yahoo.com
Tue Jul 22 11:10:41 EDT 2008


Is there a way to convert list_of_listsA to list_of_listsB, where one
list in listof lists A is one element of listB?

list_of_listsA:
[['klas*', '*', '*'],
['mooi*', '*', '*', '*'],
['koe'],
['arm*', '*', '*(haar)'],
['groei*', '*', '*', '*', '*']]

listB:
['klas* * *', 'mooi* * * *, 'koe',  'arm* * * (haar)',  'groei* * * *
*']

Thankx!



More information about the Python-list mailing list