integer to ascii
maxm at normik.dk
Wed Nov 7 11:41:00 CET 2001
"harry" <hartanto at telusplanet.net> wrote in message
news:VX7G7.18181$5e2.4403261 at news1.telusplanet.net...
> instead of '5' as the output, how do i make the output as '23' -> string
> concatnation instead of integer.
There are a few ways of doing it:
rows = `2`
( or rows = '%d' % 2 )
columns = str(3)
joined = rows + columns
rows = 2
columns = 3
joined = `rows` + str(columns)
all depending on how you want to use you variables afterwards.
regards Max M
More information about the Python-list