for example I have the following list:
contents= [\"i have two pens\",\"prices = 5$\",\"made in ____ and ____\"]
I want to split them such a wa
This is another choice, May be also complicated.
from itertools import izip_longest array = [phrase.split() for phrase in contents] l = izip_longest(*array, fillvalue=u'') result = [list(t) for t in zip(*l)]