title: Iterate every 2 elements from list at a time
body: <p>Having list as , </p>
  
  <pre><code>l = [1,2,3,4,5,6,7,8,9,0]
  </code></pre>
  
  <p>How can i iterate every two elements at a time ?</p>
  
  <p>I am trying this , </p>
  
  <pre><code>for v, w in zip(l[:-1],l[1:]):
      print [v, w]
  </code></pre>
  
  <p>and getting output is like , </p>
  
  <pre><code>[1, 2]
  [2, 3]
  [3, 4]
  [4, 5]
  [5, 6]
  [6, 7]
  [7, 8]
  [8, 9]
  [9, 0]
  </code></pre>
  
  <p>Expected output is </p>
  
  <pre><code>[1,2]
  [3, 4]
  [5, 6]
  [7, 8]
  [9,10]
  </code></pre>