title: Converting while loops into for loops
body: <blockquote>
    <p>Convert the following while loop into a for loop. Your code should be written so that the return statement does not need to be altered. You are allowed to change the code before the while loop proper. string_list is a list of string that contains at least 15 instances of the string <code>'***'</code></p>
  </blockquote>
  
  <pre><code>j=0 
  while i&lt;15: 
    if string_list[j] ='***': 
      i +=1 
    j +=1 
  return j 
  </code></pre>
  
  <p>I tried doing this first it says while <code>i&lt;15</code> and <code>i = i+1</code> so i know i ranges from (0...15) not including 15 so basically we will have like <code>i = range(15)</code> so we will have something like:</p>
  
  <pre><code>for i in range(15):
  </code></pre>
  
  <p>I don't know what that <code>j</code> is doing there.</p>