title: Creating a table on Python using nested loops
body: <p>While creating a table on python, I ran into an issue. Here is the code:</p>
  
  <pre><code>row = 5
  col = 4
  for x in range(1, row + 1):
      print("Row", x, end="")
      for y in range(1, col + 1):
          print(" Column", y, end="")
          print(" Row", x, end="")
      print()
  </code></pre>
  
  <p>This is what runs:</p>
  
  <pre><code>Row 1 Column 1 Row 1 Column 2 Row 1 Column 3 Row 1 Column 4 Row 1
  Row 2 Column 1 Row 2 Column 2 Row 2 Column 3 Row 2 Column 4 Row 2
  Row 3 Column 1 Row 3 Column 2 Row 3 Column 3 Row 3 Column 4 Row 3
  Row 4 Column 1 Row 4 Column 2 Row 4 Column 3 Row 4 Column 4 Row 4
  Row 5 Column 1 Row 5 Column 2 Row 5 Column 3 Row 5 Column 4 Row 5
  </code></pre>
  
  <p>As you can see it ends with rows and is missing column 5. What can I do to fix this? </p>
  
  <p>This is the output that I expect:</p>
  
  <pre><code>Row 1 Column 1 Row 1 Column 2 Row 1 Column 3 Row 1 Column 4 Row 1 Column 5
  Row 2 Column 1 Row 2 Column 2 Row 2 Column 3 Row 2 Column 4 Row 2 Column 5
  Row 3 Column 1 Row 3 Column 2 Row 3 Column 3 Row 3 Column 4 Row 3 Column 5
  Row 4 Column 1 Row 4 Column 2 Row 4 Column 3 Row 4 Column 4 Row 4 Column 5
  Row 5 Column 1 Row 5 Column 2 Row 5 Column 3 Row 5 Column 4 Row 5 Column 5
  </code></pre>