Possible Duplicate:
Making a flat list out of list of lists in Python
Join a list of lists together into one list in Python

I have many lists which looks like

['it']
['was']
['annoying']

I want the above to look like

['it', 'was', 'annoying']

How do i get this?

Best Answer


import itertools
ab = itertools.chain(['it'], ['was'], ['annoying'])
list(ab)

Just another method....