title: Print list to txt file without [brackets] in PYTHON
body: <p>I am trying to take a list of names, alphabetize them and print them to a new list. Here is my code:</p>
  
  <pre><code>names = []
  newnames = []
  with open("C:/names.txt", "r") as infile:
      for row in infile.readlines():
         name = row.split()
         names.append(name)
      for x in sorted(names):
         newnames.append(x)
      print newnames
  f = open("C:/newnames.txt", "w")
  f.write("\n".join(str(x) for x in newnames))
  f.close()
  </code></pre>
  
  <p>my problem is that it prints fine except for the brackets:</p>
  
  <pre><code>['Bradley']
  
  ['Harold']
  
  ['Jackson']
  
  ['Lincoln']
  
  ['Mercury']
  
  ['Shane']
  
  ['Sharon']
  
  ['Sherry']
  
  ['Xavier']
  
  ['Zoolander']
  </code></pre>
  
  <p>I want that list without the brackets or quotations in the text file</p>