Converting an intergar to a string

Patrick Phalen python-list at teleo.net
Fri Dec 31 01:11:41 EST 1999


[Jeremy Lunn, on Thu, 30 Dec 1999]
:: That fixed that problem.  Now would it be possiable to do the opposite
:: and covert an interger to a string so that it can work like this:
:: print 'some text'+num+'some text' ?
:: 
:: Thanks,
:: 
:: Jeremy
:: 
:: On Thu, Dec 30, 1999 at 10:32:21PM -0500, Darrell wrote:
:: > Try this.
:: > 
:: > num = string.atoi( urlargs["num"].value)


Gosh, Jeremy, it sounds like maybe you're trying to learn Python by
trial and error. There's an easier way. I really recommend the excellent
documentation at http://www.python.org/doc/.

Pay particular attention to the Tutorial and the Library Reference.
You'll be glad you did. ;)






More information about the Python-list mailing list