String adding.
Prateep Siamwalla
teep at inet.co.th
Sun Oct 22 23:01:44 EDT 2000
Mark,
intName = 3
print '<' + str(intName) + '>'
should do the trick
-teep
Mark Cunningham <mcunni01 at uoguelph.ca> wrote in message
news:39ECFA3F.26B87754 at uoguelph.ca...
> i know doing:
>
>
> strName = 'wow'
> '<' + strName + '>'
>
> will give you <wow>
>
> but what about:
>
> intName = 3
> print '<' + intName + '>'
> this gives me some illegal argument type for built-in operation..
> how would i make it give me <3>????
>
More information about the Python-list
mailing list