title: Using exception handling to break from While loop in Python
body: <p>I'm writing a program manipulating iterators in python3. <br>
  While looking online, I encountered a (pretty) strange solution to the problem of iterating from a random value in the middle to the last value  that looks something like this:</p>
  <pre><code>next(it) # X4 times, for example
  
  while True:
          try:
             #some code
             next(it)
  
          except StopIteration:
              break
  </code></pre>
  <p>I was wondering if there is another way of implementing this kind of code. because using exception handling to break from a loop looks a bit odd to me?</p>