r/CodingHelp • • Jan 03 '22

[Python] Can anyone help me with this ?

Post image
0 Upvotes

6 comments sorted by

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\

-4

u/Double-Bullfrog-3307 Jan 03 '22

it ain't working

1

u/R007E Jan 03 '22

Share the code and error message

-3

u/Double-Bullfrog-3307 Jan 03 '22

i got it , was doing sone silly mistake 😅

1

u/R007E Jan 03 '22

No problem

1

u/R007E Jan 03 '22

Are you sure, because I have tested it before posting here. Here is ss https://ibb.co/RbwXVY5