Type Casting...
Emile van Sebille
emile at fenx.com
Tue Sep 18 14:41:44 EDT 2001
Three ways off the top of my head:
a = 123
b = `a`
b = str(a)
b = '%s' % a
HTH,
--
Emile van Sebille
emile at fenx.com
---------
"David In VA" <me at mindspring.com> wrote in message
news:MPG.160f3176ea052fb8989742 at nntp.mindspring.com...
> I have a variable that is storing a numeric value. I need the string
> representation of that value. I would imagine type casting would be the
> thing to use. can someone please tell me how to do this in Python?
>
>
> Thanks
More information about the Python-list
mailing list