uris77
11/16/2012 - 4:01 PM

flatten nexted list in python

flatten nexted list in python

flat_list = []
for list in my_list:
    for item in list:
        flat_list.append(item)
 return flat_list