title: Looping through and appending a list of names
body: <p>I'm writing a program that keeps asking the user to enter names until the word END is entered, 
  at which point it prints out the list of names.</p>
  
  <p>The code:</p>
  
  <pre><code>import getpass
  import time
  import sys
  print("Welcome " + getpass.getuser() + "...")
  time.sleep(0.25)
  print("This program, powered by Python, it will ask you to enter names...")
  time.sleep(0.5)
  print("...once you have finished, enter END to print off your list")
  names = []
  for i in names:
      name = input("Please enter a name: ")
      if name == "END":
          print(names)
          sys.exit()
      names.append(name)
  </code></pre>
  
  <p>The issue is that the program exits before it even attempts to do the for loop.</p>
  
  <p>Why is this happening and how should I tackle it?</p>