transform a list of lists in a lit of strtings???
Emile van Sebille
emile at fenx.com
Sun Sep 8 14:35:32 EDT 2002
<jubafre at brturbo.com>
> 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
it????
>
You'll want a flatten function. Look into these threads:
http://groups.google.com/groups?as_q=flatten&as_ugroup=comp.lang.python
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list