-1

I am trying to write it like this:

str.replace("'", """)

but it gives me an syntax error, how to properly write this?

AnaCS
  • 976
  • 4
  • 15
  • 32

1 Answers1

2

use escape str.replace("'", "\"")

Chris Li
  • 2,628
  • 1
  • 8
  • 23