How do I write a function to escape all double quotes in a string in Python?
<p>How can I replace all the <code>"</code> with the raw string <code>\"</code> in a string such as <code>"Hello", said he.</code> in Python?</p>
