how to coerce to a string in Python?

Mark Tarver dr.mtarver at ukonline.co.uk
Tue Apr 28 20:59:22 CEST 2009


On 28 Apr, 19:58, Mark Tarver <dr.mtar... at ukonline.co.uk> wrote:
> How do you coerce an object to a string in Python?
>
> 123 --> "1 2 3"
> [1,2,3] -> "[1,2,3]" etc
>
> Mark

Ah , 'str' a pure guess but it worked.

Mark




More information about the Python-list mailing list