title: In a Python list, how can I print the 1st and 2nd elements on a line, the 3rd and 4th on the next line, and so forth?
body: <p>I am generating a string and appending it to a list. I am looping that action to make a list of 40 elements. I want to print them like so:</p>
  
  <p>here's my list</p>
  
  <pre><code>list = [ 'first', 'second', 'third', ... 'fortieth' ]
  </code></pre>
  
  <p>i tried this</p>
  
  <pre><code>for z in list:
  if z % 2 == 0:
      print(list[z], list[z+1])
  </code></pre>
  
  <p>and many other variations. i want it to print like this</p>
  
  <pre><code>first second
  third fourth
  fifth sixth
  ...
  thirty-ninth fortieth
  </code></pre>
  
  <p>how can i do this?
  thank you for your time</p>