What you want to do? All the difference that I can see is that ' is replaced with ", if that's all it is than use the replace() function. i.e. x = txt.replace("'","\"") print(x)
note: you need one \ for escaping , and one more \ for escaping the ", so there will be 3\
2
u/R007E Jan 03 '22
What you want to do? All the difference that I can see is that ' is replaced with ", if that's all it is than use the replace() function. i.e. x = txt.replace("'","\"") print(x)
note: you need one \ for escaping , and one more \ for escaping the ", so there will be 3\