title: Python sum of number in array, ignoring sections of specific numbers
body: <p>I am very new to Python and have been going through multiple tutorials to get better.</p>
  
  <p>I have straggled with one difficult problem and found a solution. But it feels, works very newbie like. I think that I have tailored it to answer the specific question.</p>
  
  <p>So the question is:</p>
  
  <p>SUMMER OF '69: Return the sum of the numbers in the array, except ignore 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>
  
  <pre><code>summer_69([1, 3, 5]) --&gt; 9
  summer_69([4, 5, 6, 7, 8, 9]) --&gt; 9
  summer_69([2, 1, 6, 9, 11]) --&gt; 14
  </code></pre>
  
  <p>My code to solve this is:</p>
  
  <pre><code>def summer_69(arr):
      list1 = arr
      summ = int()
      for i in range(0, len(arr)):
          if 6 in list1:
              listOfRange = range(list1.index(6), list1.index(9) + 1)
              for index in listOfRange:
                      print(listOfRange)
                      arr[index] = 0
              if 6 != arr[i]:
                  summ += arr[i]
              else:
                  continue
          else:
              summ += arr[i]
      return summ
  </code></pre>
  
  <p>It is a very basic problem and I am very alerted that I have struggled with something like this already.</p>