[Tutor] Joining non strings in to string

Eddie S sowden at gmail.com
Fri Oct 28 14:08:28 CEST 2005


Hi,
I have a list containing numbers. I want to join this list in to a
string which I can then output. The problem is I cant seem to join
list of non-string items in to a string.

My list looks something like:

list = [5,7,20,19,49,32]

I could loop through the list outputing each number individually but I
am sure there is a nicer method of doing it.

Cheers Eddie


More information about the Tutor mailing list