How to concatenate strings in different lists

Daiyue Weng daiyueweng at gmail.com
Wed Nov 23 12:40:44 EST 2016


Hi, I am wondering how to concatenate corresponding strings in two lists,
assuming that the lists are of same length, e.g.

val_1 = ['a', 'b', 'c']
val_2 = ['A', 'B', 'C']

# concatenate corresponding strings in 'val_1' and 'val_2'
# and put results in another list 'val' so that
# val = ['aA', 'bB', 'cC']

cheers



More information about the Python-list mailing list