title: Printing out elements of list into separate text files in python
body: <p>Im new to python programming and need some help with some basic file I/O and list manipulation.</p>
  
  <p>currently i have a list (s) that has these elements in it:</p>
  
  <pre><code>['taylor343', 'steven435', 'roger101\n']
  </code></pre>
  
  <p>what i need to do is print each line into new text files with only the 1 element in the text files as shown below:</p>
  
  <pre>
  file1.txt
  taylor343
  
  file2.txt
  steven435
  
  file3.txt
  roger101
  </pre>
  
  <p>Im currently trying to work with this using a loop but i can only output into 1 text file</p>
  
  <pre><code>for x in list:  
      output.write(x+"\n")
  </code></pre>
  
  <p>How can i get it to write every single line of list into new text files (not just one)</p>
  
  <p>Thank you</p>