I would like to append element-wise of two lists (one in a string format). Suppose:
a = [1,2,3]
b = ['&','&','\\']
The output that I am looking is:
['1', '&', '2', '&', '3', '\\']
I tried the below code, but the answer is not the right one:
[str(x)+y for x,y in zip(a,b)]
Output: ['1&', '2&', '3\\']