title: Python, add items from txt file into a list
body: <p>Say I have an empty list <code>myNames = []</code></p>
  
  <p>How can I open a file with names on each line and read in each name into the list?</p>
  
  <p>like:</p>
  
  <pre><code>&gt;     names.txt
  &gt;     dave
  &gt;     jeff
  &gt;     ted
  &gt;     myNames = [dave,jeff,ted]
  </code></pre>