Modulus in Python's slicing
<p>How can you fix the following code?</p>

<p>I want to get the slice of elements that are <em>i mod 5 == 1</em>.</p>

<pre><code>data = "8|9|8|9|8|9|8|9|9|8|9|8|9|8|9|8" 
arra = map(int,data.split("|"))  

sums += [sum(arra[i % 5==1:(i + 4) % 5==1])         // Problem here
        for i in range(0, len(arra), 4)]
</code></pre>
