Possible Duplicate:
join list of lists in python
Flatten (an irregular) list of lists in Python
How can I flatten lists without splitting strings?
I have a list-tuple-list tree and I'd like to flatten it for a query, so that I can print all the items of the the first lists of each tuple.
I can do it via a for loop
bigNest = [([item1,item2],[]),([item3],[item4])]
mergedlist = []
for listItem in bigNest:
mergedlist += listItem[0]
print mergedList
I'm wondering if there's a simpler/quicker way which will also work with larger tuples.