title: python, zip:Discard extra elements
body: <p>I want to generate coupon numbers to a .txt, I set the number of elements as argument when I call it.</p>
  
  <p>I use zip() to iterate to write to a .txt in two column. But zip always discard one element when I set a odd number.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>for i, j in zip(coupon[0::2], coupon[1::2]):
      w.writelines(j + '\t' + i + '\n')
  </code></pre>
  
  <p>How to deal with it?</p>
  
  <p>Besides, If I try to make to 10 column a row, How to write it here?</p>
  
  <pre><code>for a, b, c, ....j in ~~:
  </code></pre>
  
  <p>This will be stupid and I cant type <code>\t</code> for 9 times.</p>
  
  <p>Thank you!</p>