title: How to generate rows and columns in Python 3
body: <p>I need to know how to generate a sequence of numbers that are <em>right-justified</em> in <em>rows (of 6)</em> and <em>columns (of 7)</em> with a set field width (of 2) and space (of 1). </p>
  
  <p>First I have to ask the user for an input number <code>"n"</code> (with requirements <code>-6 &lt; n &lt; 2</code>) and then print <code>"n to n+6"</code> in the first column, <code>"n+7 to n+13"</code> in the following column and so on.</p>
  
  <p>I've got the input/output from the following code but don't know how to generate the rows and columns (or specify the field widths):</p>
  
  <pre><code>n = int(input("Enter the start number: "))
  
  if n&gt;-6 and n&lt;2:
      for x in range(n, n+41):
          print(n, end=" ")
          n = n+1
  </code></pre>
  
  <p>I've been trying to do it with for loops within this for loop but can't figure it out. Any help will be really appreciated - thank you in advance!</p>