title: How do I display a certain amount of words per line?
body: <p>So I have a list:</p>
  
  <pre><code>names = ['dog','cat','mouse','moose','rabbit','horse','apple','banana','orange']
  </code></pre>
  
  <p>I want the output to be like this:</p>
  
  <pre><code>dog cat mouse moose rabbit horse
  apple banana orange
  </code></pre>
  
  <p>So basically a max of six words per line displayed when printed.</p>
  
  <p>I'm honestly clueless where to start, because a for loop as such will display 1 per line:</p>
  
  <pre><code>for i in names:
     print(i)
  
  output --&gt;
  dog
  cat
  mouse
  moose
  rabbit
  horse
  apple
  banana
  orange
  </code></pre>