So I have 2 lists:
L1 = ['a', 'b', 'c', 'd']
L2 = ['1', '2', '3', '4']
I need my result to look like this:
['a1', 'b2', 'c3', 'd4']
I used a for loop, but I can't seem to get it right. This is what I did:
L3 = []
L1 = ['a', 'b', 'c', 'd']
L2 = ['1', '2', '3', '4']
for i in range(len(L1)):
L3 += L1[i] + L2[i]
print(L3)
My results end up looking like:
['a', '1', 'b', '2', 'c', '3', 'd', '4']
And that's all I have. Any help would be greatly appreciated!