-1

I am trying to write it like this:

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

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

1
  • where is the original? Commented Sep 12, 2018 at 9:58

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.