title: How to create 1-100 in 10 rows?
body: <p>I'm trying to get the following exercise:</p>
  
  <blockquote>
    <p>"Write a program containing a pair of neste while loops that displays the integer values 1-100, ten numbers per row, with the columns alignes as below.</p>
  
  <pre><code> 1  2  3  4  5  6  7  8  9 10
  11 12 13 14 15 16 17 18 19 20
  </code></pre>
  </blockquote>
  
  <p>So far I've come up with this:</p>
  
  <pre><code>lijst = list(range(1, 101))
  i = 0
  
  while i &lt; 100:
      print(lijst[i],"\t", end=" ".format("&gt;"))
      i = i+1
      if i % 10 == 0:
          print("")
  </code></pre>
  
  <p>Although it produces the things I need, the tabs aren't working. whenever I try to add spaces instead of a tab, things move way too much on the second and further rows. 
  Furthermore I can't seem to find out why the <code>.format("&gt;")</code> doesn't work. I've tried to apply <code>.format("&gt;3")</code> but that didn't do anything at all.</p>