title: Distinguishing multiple exit points in loop
body: <p>I was watching python <a href="https://m.youtube.com/watch?t=1035s&amp;v=OSGv2VnC0go" rel="noreferrer">lecture by Raymond Hettinger on youtube</a>. And he showed the right way to exit for loop:</p>
  
  <pre><code>def find(seq, target):
      for i, value in enumerate(seq):
          if value == target:
              break
      else:
          return -1
      return i
  </code></pre>
  
  <p>I dont get why bother with else statement and not just do:</p>
  
  <pre><code>def find(seq, target):
      for i, value in enumerate(seq):
          if value == target:
              return i
      return -1
  </code></pre>
  
  <p>Am I missing something or it is just good idea to sometimes add this else/break statement for whatever reason? </p>