integer to string?

Hendrik Reinhold webliebe at t-online.de
Mon Jun 2 22:15:27 EDT 2003


Hello,

I want my answering machine to play a random file for each call.
The configuration scripts (of capisuite) are in python, so I think I
am in the right group. :)


import random
from random import randrange
var1 = randrange(0,9)
capisuite.audio_send(call,my_path+var1+".la")


I guess that var1 is an integer and that I cannot concat the var1
with the path variable and the file extension. I couldn´t find out how
to convert the variables (int to string), and phyton.org was not very
usefull for me, a python newbie.  ;)

any ideas? 

best regards
Hendrik

PS:  (using v2.2.2) 




More information about the Python-list mailing list