title: Lists: AttributeError: 'str' object has no attribute 'append'
body: <p>I need help with this code, I get an error message that says   </p>
  
  <pre><code>File "&lt;tmp 6&gt;", line 4, in &lt;module&gt;
  n.append(names)
  
  AttributeError: 'str' object has no attribute 'append'
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>names = ['','','','','']   
  for i in range(1,6):    
      n = input("Enter a name: ")   
      n.append(names)          
  print (names)
  </code></pre>