I would like to add a backslash all doublepoints in a tuble that is in a array...
The code I have:
def removeDots (input):
for i in input:
p = i[2]
p.replace(":","\:")
liste = list(i)
liste.append(p)
liste = tuple(i)
return input
Example:
Before: [('Hello:bye','Hello:bye'),('Bye:Hello','Bye:Hello')]
After: [('Hello:bye','Hello\:bye'),('Bye:Hello','Bye\:Hello')]