title: Confused with python codehs 8.4.4
body: <p>So I'm trying to slice out the middle names that the user entered and print them but it isn't working and I don't know what do do. </p>
  
  <p>I've already tried looking it up </p>
  
  <pre><code>name_amount = int(input("How many names do you have? "))
  namelist = []
  index = 0
  for i in range (name_amount):
      name = input("Name: ")
      namelist.append(name)
      index += 1
  print "You have " + str (name_amount) + " names."
  print "Middle names: " + namelist[0][1:index - 1]
  </code></pre>
  
  <p>For example, if you say you have 3 names and say L then T then K I want it to say </p>
  
  <p><code>Middle names: T</code></p>
  
  <p>but instead it just says:</p>
  
  <p><code>Middle names:</code>              </p>
  
  <p>and then nothing else.</p>