I have two lists and I want to concatenate them element-wise. One of the list is subjected to string-formatting before concatenation.
For example :
a = [0, 1, 5, 6, 10, 11]
b = ['asp1', 'asp1', 'asp1', 'asp1', 'asp2', 'asp2']
In this case, a
is subjected to string-formatting. That is, new a
or aa
should be :
aa = [00, 01, 05, 06, 10, 11]
Final output should be :
c = ['asp100', 'asp101', 'asp105', 'asp106', 'asp210', 'asp211']
Can somebody please tell me how to do that?