String adding.

Mark Cunningham mcunni01 at uoguelph.ca
Tue Oct 17 21:17:51 EDT 2000


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