If I have an indefinite amount of lists and I want to write a method for them to concatenate item-wise, what would be the best way to do this? Meaning, I don't have just 2 lists, like list A and list B and can write something like
X = [x+y for x, y in zip(A, B)]
but I will have various lists generated, which must be sequentially concatenated, so I don't know how to iterate over a n number of lists and concatenate them.
The first list will always have 1 or more elements (its length can be different), and the ones after it will always have only 1 element:
['a','b','c'],['foo'], ['bar']....
The result I need is
['afoobar','bfoobar','cfoobar']