title: Python: While loop will not terminate
body: <p>I have read a lot of topics regarding while loops and I can't find one that tells me what I have done wrong with my own code.  I am doing the Learn Python the Hard Way and I wrote this code in order to satisfy the study drill #1 for exercise 33.  I cannot figure out why the loop won't terminate when I put in my raw data.  </p>
  
  <pre><code>numbers = []
  
  def number_uno(z):
      i = 0
      while i &lt; z:
          print "At the top i is %d" % i
          numbers.append(i)
  
          i += 1
          print "Numbers now: ", numbers
          print "At the bottom i is %d" % i
  
  
  print "Pick a random number: "
  z = raw_input("&gt; ")
  
  number_uno(z)
  
  print "Done"
  </code></pre>
  
  <p>Any ideas?  it just keeps adding 1 to "i" and will not stop printing.</p>
  
  <p>Thanks,
  Zach</p>