group list of ints by continuous sequence
<p>I have a list of integers...</p>

<pre><code>[1,2,3,4,5,8,9,10,11,200,201,202]
</code></pre>

<p>I would like to group them into a list of lists where each sublist contains integers whose sequence has not been broken.  Like this...</p>

<pre><code>[[1,5],[8,11],[200,202]]
</code></pre>

<p>I have a rather clunky work around...</p>

<pre><code>lSequenceOfNum = [1,2,3,4,5,8,9,10,11,200,201,202]

lGrouped = []
start = 0
for x in range(0,len(lSequenceOfNum)):
    if x != len(lSequenceOfNum)-1:
        if(lSequenceOfNum[x+1] - lSequenceOfNum[x]) &gt; 1:
            lGrouped.append([lSequenceOfNum[start],lSequenceOfNum[x]])
            start = x+1

    else:
        lGrouped.append([lSequenceOfNum[start],lSequenceOfNum[x]])
print lGrouped
</code></pre>

<p>It is the best I could do.  Is there a more "pythonic" way to do this?  Thanks..</p>
