A
Ansgar Wollnik
Hello all,
I'd like to expand a tuple into a string (to use this for a MySQL-Select).
result=""
tuple=('one','two','three')
for element in tuple:
result=result+","+element
But this doesn't work. What can I do to get a string like this:
result="one, two, three"
Thanks for your help,
Ansgar
I'd like to expand a tuple into a string (to use this for a MySQL-Select).
result=""
tuple=('one','two','three')
for element in tuple:
result=result+","+element
But this doesn't work. What can I do to get a string like this:
result="one, two, three"
Thanks for your help,
Ansgar