concatenate the elements in each list of a list of lists

antar2 desothier at yahoo.com
Wed Jul 23 11:33:57 EDT 2008


I already asked a similar question, but encounter problems with
python...
How can I concatenate the elements in each list of a list of lists

list_of_listsA =

[['klas*', '*', '*'],
['mooi*', '*', '*', '*'],
['arm*', '*', '*(haar)']]

wanted result:

list_of_listsA =

[['klas* * *']
['mooi* * * *']
['arm* * *(haar)']]

Thanks a lot !




More information about the Python-list mailing list