At some point in my code, i have a list of tuples that i need to pass as a string, but a string that includes the structural elements of the tuple ie comas and parenthesis.
Currently i'm doing this :
listofv = ''
for tu in listof2tuple:
ltu = '(' + tu[0] + ',' + tu[1] + ')'
listofv.append(ltu)
finalstring = ','.join(listofv)
While this works it seems strange, since printing the tuple in IDLE shows a string that is exactly what i want already.
What's the good way of doing this ?