title: Checking dynamic arrays
body: <p>I cannot realise what needs to happen with the following code...</p>
  
  <p>There are two arrays. <em>potentialFirstQ_array</em> takes the number of the question, while <em>correspondingNum</em> is the amount of times the user has got said question correct.</p>
  
  <p>The following is to check whether all the questions have the same <em>correspondingNum</em>, if this was different then the Question where the user has got it more correct than the lowest value is removed from the list.
  So, the questions displayed are the ones the user has gotten correct, the least.</p>
  
  <p>So, the list is constantly changing size, the current issue is that the size is out of range. I have tried various options, but I reverted the code back to its simplest state.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>for i in range(0,int(size)):
      size1=len(potentialFirstQ_array)
      for x in range(0,int(size1)):
          if lowest != "0":
              if int(correspondingNum[x]) &gt; int(lowest):
                  x=x-change_in_size
                  potentialFirstQ_array.pop(x)
              else:
                  if correspondingNum[x] != lowest:
                      x=x-change_in_size
                      potentialFirstQ_array.pop(x)
  </code></pre>
  
  <p>Any clarity is appreciated.</p>