title: Python: How to remove all quotations from a text file?
body: <p>I have a text file which has quotations in the form <code>'</code> and <code>"</code>. This text file is of the form. </p>
  
  <pre><code>"string1", "string2", 'string3', 'string4', ''string5'', etc. 
  </code></pre>
  
  <p>How can I remove all of the quotations <code>'</code> and <code>"</code> while leaving the rest of the file the way it is now? </p>
  
  <p>I suspect it should be something like this:</p>
  
  <pre><code>with open('input.txt', 'r') as f, open('output.txt', 'w') as fo:
      for line in f:
          fo.write(line.strip())
  </code></pre>
  
  <p>Where <code>line.strip()</code> somehow strips the strings of the quotation marks. Is anything else required? </p>