title: loop is taking data from outside of loop
body: <p>full code is here: <a href="https://repl.it/repls/UnevenLovingDecagons" rel="nofollow noreferrer">https://repl.it/repls/UnevenLovingDecagons</a></p>
  
  <p>line 29 with <strong>colony_size=(randrange(50,150))</strong> is outside of loop </p>
  
  <p>then at line 42 loop starts.
  <strong>colony_size</strong> is in line 45 as well.
  I would like the <strong>colony_size</strong> to be influenced by line 29 only once. With second run of loop I'd like the colony_size to be influenced only by what is going on inside of the loop. How can I do so?</p>
  
  <p>part code below:</p>
  
  <pre><code>colony_size=(randrange(50,150))
  </code></pre>
  
  <p>the one above is still outside of loop
      colony_size=(colony_size+immigrants)-died
  this one is inside
      enter code here
      enter code here
      enter code here</p>