transform list of int in a list of string??
chris_mk at hotmail.com
Fri Sep 13 19:29:07 EDT 2002
I think you meant:
y = [str(n) for n in x]
Skip Montanaro <skip at pobox.com> wrote in message news:<mailman.1031941396.19665.python-list at python.org>...
> 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'...]????????
> y = map(str, x)
> y = [int(n) for n in x]
More information about the Python-list