Getting two-tuples out of a list
<p>I just extracted some data from a list using python but think it's overcomplicated and unpythonic and there's probably a much better way to do this. I'm actually pretty sure I saw this somewhere in the standard library docs but my brain refuses to tell me where.</p>

<p>So here it goes:</p>

<p>Input:</p>

<pre><code>x = range(8) # any even sequence
</code></pre>

<p>Output:</p>

<pre><code>[[0, 1], [2, 3], [4, 5], [6, 7]]
</code></pre>

<p>My take:</p>

<pre><code>[ [x[i], x[i+1]] for i in range(len(x))[::2] ]
</code></pre>
