transform list of int in a list of string??

Skip Montanaro skip at
Fri Sep 13 20:20:38 CEST 2002

    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]

Skip Montanaro
skip at

More information about the Python-list mailing list