converting an integer to a string

Sean Ross sross at connectmail.carleton.ca
Tue Aug 5 22:18:43 EDT 2003


"Ken Fettig" <kenfettig at btinet.net> wrote in message
news:bgpl6401e66 at enews4.newsguy.com...
> I have a quick simple question. How do you convert an integer to a string
in
> Python?


>>> 1
1
>>> str(1)
'1'
>>>

HTH,
Sean






More information about the Python-list mailing list