transform a list of lists in a lit of strtings???

Emile van Sebille emile at
Sun Sep 8 20:35:32 CEST 2002

<jubafre at>
> I have a list of lists like this:
> labels=[['D1'], ['D2'], ['D3']]
> and i want to transform ia a list of strings
> labels2==[ 'D1' ,  'D2' ,  'D3' ] <<<<<<<----------- how i can get

You'll want a flatten function.  Look into these threads:


Emile van Sebille
emile at


More information about the Python-list mailing list