Converting an intergar to a string
Wm. King
wjk at wjk.mv.com
Sun Jan 2 00:45:07 EST 2000
Hi: As I am relatively new to Python, I had asked basically the same
question some time ago... Here is what I found:
print "Some Text " + str(num) + "Some text"
Hope this helps.
Jeremy Lunn wrote:
> 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)
> >
> --
> Jeremy Lunn
> Melbourne, Australia
> ICQ: 19255837
More information about the Python-list
mailing list