title: I have a list, that I need to print out 10 items on every new line?
body: <p>giant list That i need to print every 10 items on a new line so instead of me writing</p>
  
  <pre><code>for a in range(0, 9):
      print(myList[a])
  
  for b in range(10, 19):
      print(myList[b])
  </code></pre>
  
  <p>example input:</p>
  
  <pre><code>myList = [1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,171,8,19,20,21,22]
  for a in range(0, 9):
      print(myList[a])
  
  for b in range(10, 19):
      print(myList[b])
  
  for c in range(20, 29):
      print(myList[c]     
  </code></pre>
  
  <p>example output:</p>
  
  <pre><code>&gt;&gt;&gt; 1,2,3,4,5,6,7,8,9
  &gt;&gt;&gt; 10,11,12,13,14,15,16,17,18,19
  &gt;&gt;&gt; 20,21,23,24,25,26,27,28,29
  </code></pre>
  
  <p>how could I write it in one line?</p>