title: Updating range() function in for loop
body: <p>I have the following pseudocode.</p>
  
  <pre><code>for j in range(0, len(list)):
      xx
      xx
      if something == True:
          list.append("x")
  </code></pre>
  
  <p>Will <code>range(0, len(list))</code> be called every time j iterates through the block of code, and hence will its max value update?</p>
  
  <p>I tried figuring it out looking at the stack data, however I couldn't figure it out.</p>