[Tutor] Create file / Print list to file

Klas Marteleur klas.martelleur at telia.com
Thu Aug 12 08:51:55 CEST 2004

Thanks Danny, Alan, Nick and Kent. Something really cool about this list is 
that you often get several good answers, all with diffrent ways of looking at 
the problems that means you learn a lot on the way.

The following lines accomplish what i want:

> You can probably do something like:
>      lineData = ' '.join([str(x) for x in line])
> to first pass each element through the str() conversion function, and then
> join those strings together.


More information about the Tutor mailing list