Concatening string and integer

Peter Schneider-Kamp petersc at stud.ntnu.no
Thu Apr 27 09:57:54 EDT 2000


JJ wrote:
> 
> Hi!
> 
> I want to concatenate a string containing both strings and integers like:
> 
> strTemp = 'I make test number: ' + iMyNumber + ' once again'

Adapted from the FAQ:

strTemp = 'I make test number: ' + repr(iMyNumber) + ' once again'

bye
Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list