title: How to remove quotation marks from variable that writes to a file?
body: <p>Everytime i run this part code everything goes smoothly BUT when it writes the variable to the file it shows up with quotation marks, is there a way to remove them and write it as simple text?</p>
  
  <pre><code>try:
          with open(tokens) as f:                 
              lines = f.readlines()               
              answer = random.choice(lines)       
              print(answer)                       
      except:
  
      file_name = tokens                      
      opened_file = open(tokens, 'a')         
      opened_file.write("%r\n" %user_input)   
      opened_file.close()                     
  </code></pre>
  
  <p>writing in the file looks like this:
  'Whats up'
  and i want it to look like this:
  Whats up</p>