title: How to ignore numbers after specific number in the list/array in Python?
body: <p>I'm stuck on this problem:</p>
  
  <p>I was trying to return sum of list of numbers in the array ignoring sections of numbers starting with a 6 and extending to the next 9 (every 6 will be followed by at least one 9). Return 0 for no numbers.</p>
  
  <p>Here are my test cases:</p>
  
  <pre><code>number_69([1, 3, 5]) --&gt; 9
  number_69([4, 5, 6, 7, 8, 9]) --&gt; 9
  number_69([2, 1, 6, 9, 11]) --&gt; 14
  </code></pre>
  
  <p>I came up with something like:</p>
  
  <pre><code>def number_69(arr):
     for num in arr:
       if 6 not in arr and 9 not in arr:
          return sum(arr)
       return 0
  </code></pre>