Apr-22-2017, 08:42 PM
(Apr-22-2017, 07:46 PM)arsenal88 Wrote: I want it to be [AA08+data, AA08+data]You could probably join element before the goes in the list.
It had been better if you post sample code that we can run.
Can of course join element in a list that has been made.
>>> lst = ['AA08', 'data', 'AA08', 'data'] >>> it = iter(lst) >>> [''.join(each) for each in zip(it, it)] ['AA08data', 'AA08data']