Converting integer of tuple to string of tuple

Viewed 17263

I wanted to convert the integer of tuple into string of tuple. For example:

data = [(2,3,4,...),(23,42,54,...),......]

would result in:

d = [('2','3','4',...),('23','42','54',....)......]

Please notice how tuple is big and list is also big.

I tried the code below but it doesn't give me the result I was looking for:

data = [(2,3,4,...),(23,42,54,...),......] 

d=[]
for t in data:
    d.append(str(t))
2 Answers
Related