transform list of int in a list of string??

Christopher chris_mk at
Fri Sep 13 19:29:07 EDT 2002

I think you meant:
y = [str(n) for n in x]


Skip Montanaro <skip at> wrote in message news:<mailman.1031941396.19665.python-list at>...
> juliano> How can i transform a list of integer numbers in a list of
>     juliano> string numbers, like that: 
>     juliano> x=[1,2,3,4] to y=['1', '2'...]????????
> Try 
>     y = map(str, x)
> or
>     y = [int(n) for n in x]

More information about the Python-list mailing list