title: Creating an empty list to have data assigned afterwards
body: <p>Lets say that I want to create a list of names</p>
  
  <pre><code>listOfNames = []
  </code></pre>
  
  <p>Then I have a while loop such as</p>
  
  <pre><code>count = 0
  while listOfNames[count] &lt; 10:
      nameList[count] = raw_input("Enter a name: ")
      count += 1
  </code></pre>
  
  <p>Python says that the list index is out of range, but the list index should be at 0, correct?</p>
  
  <p>How do add to the list each time the while loop is ran? I'm assuming something is wrong with my list assignment.</p>