title: python write string to a file without quotes
body: <p>I am trying to write some strings to a file but without quotes.</p>
  
  <p>I am reading from a list and trying to write <code>item[0]</code> to an output file.</p>
  
  <p>I tried to map and do <code>item[1:-1]</code> but none of them worked.</p>
  
  <p>this my code:</p>
  
  <pre><code>for item in sorted(wrong_blocks):
        output.write(str(item[0]))
  </code></pre>
  
  <p>this keep writing to the file:</p>
  
  <pre><code>"word"
  </code></pre>
  
  <p>but I just want:</p>
  
  <pre><code>word
  </code></pre>
  
  <p>without quotes</p>
  
  <p>I checked this 
  <a href="https://stackoverflow.com/questions/20585559/python-how-to-write-strings-to-file-without-quotes-and-spaces">Python - how to write strings to file without quotes and spaces?</a> </p>