title: How to cancel the count between 24th and 25th member of the array
body: <p>I currently have the following function that counts the variation in an array if it does not vary to 0. I want to add a restriction that cancels the count between every 24th and 25th member of the array. The array accounts for 24 hours period and I don´t want to count the variation between days. There are lots of days so it needs to happen every 24th index.</p>
  <pre><code>def count_pump_switches(arr): 
      count=0
      for i in range(1,len(arr)):
          if arr[i-1] != arr[i] and arr[i]!=0:
              count+=1
      return count
  </code></pre>