pairwise combination of two lists

SigmundV sigmundv at
Thu Aug 18 23:51:13 CEST 2011

On Aug 17, 9:22 pm, Yingjie Lin <Yingjie.... at> wrote:
> I found zip() but it only gives [('a', '1'), ('b', '2')],  not exactly what I am looking for.

Yet, if you feed the zip into a list comprehension you get what you

li3 = [''.join(l) for l in zip(li1,li2)]


More information about the Python-list mailing list