title: Sequence elements will not modify (Python 3.4)
body: <p>Okay, no more questions after this:</p>
  
  <pre><code>import random
  
  lotto = [0, 0, 0, 0, 0, 0, 0, 0]
  index = 0
  
  while index &lt;= 6:
      lotto[index] = random.randrange(1, 9)
      index = index + 1
      print("Lotto number",index,"is",lotto[index],"!")
  </code></pre>
  
  <p>I cannot seem to find what is up with why these sequence elements will not be modified. The index and the sequence are handled properly but the <code>lotto[index] = random.randrange(1, 9)</code> line seems to be useless. It doesn't change anything in the sequence at all. I know I'm missing something but I've been staring at this thing for a long time now and just cannot see what I'm screwing up. I've changed the elements and it outputs everything properly it just won't change the sequence elements. Halps?</p>