Find longest sequence of 0's in the integer list
<p><code>A = [1,2,0,0,3,4,5,-1,0,2,-1,-3,0,0,0,0,0,0,0,0,-2,-3,-4,-5,0,0,0]</code></p>

<p>Return initial and ending index of longest sequence of <code>0</code>'s in the list.
As, longest sequence of <code>0</code>'s in above list is <code>0,0,0,0,0,0,0,0</code> so it should return <code>12,19</code> as starting and ending index.Please help with some one line python code.</p>

<p>I tried :</p>

<pre><code>k = max(len(list(y)) for (c,y) in itertools.groupby(A) if c==0)
print(k)
</code></pre>

<p>which return <code>8</code> as the max length.</p>

<p>Now, how to find start and end index of longest sequence?</p>