[Tutor] converting an integer to a string
Gus Tabares
gustabares at verizon.net
Sun Mar 28 22:06:02 EST 2004
On Sunday 28 March 2004 21:56, Christopher Spears wrote:
> Is there some function that will convert an integer
> into a string? For example, x = 4 will become x = '4'.
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>>> num = 3
>>> str(num)
'3'
>>>
Good luck.
--
Gus Tabares
More information about the Tutor
mailing list