I have a list of lists:
listoflist = [['BOTOS', 'AUGUSTIN', 14, 'March 2016', 600, 'ALOCATIA'], ['HENDRE', 'AUGUSTIN', 14, 'February 2015', 600, 'ALOCATIA']]
^^ This was just an example, I will have many more lists in my list of lists with the same format. This will be my desired result:
listoflist = [['BOTOS AUGUSTIN', 14, 'March 2016', 600, 'ALOCATIA'], ['HENDRE AUGUSTIN', 14, 'February 2015', 600, 'ALOCATIA']]
Basically in each list, I want to join the first index with the second in order to form the full name in one index, as in the example. And I need a function for whoever takes the input list, how can I do this in a simple way? (I do not need extra lib for this). I am using python 3.5, thank you so much for your time!
source
share