title: Using a while loop to iterate trough a list but i cant get the item after "150"
body: <p>The while loop need to iterate trough the list and get the number thats divisible by five, If the number is greater than 150, then skip it and move to the next, If the number is greater than 500, then stop the loop.</p>
  <pre><code>list = [12, 75, 150, 180, 145, 525, 50]
  i = 0
  length = len(list)
  
  while i &lt; length:
      if list[i] &gt; 500:
          break
      
      elif list[i] &gt; 150:
          continue
      
      elif list[i] % 5 == 0:
          print(list[i])
      
      i+=1
  </code></pre>