title: column and row parameters of array are backwards. Python
body: <p>I have this piece of code here that generates a 2D array and fills it with &quot; &quot;, asks the user to enter an x and y coordinate, and then changes that coordinate to a &quot;1&quot;. When I try to change the element, it seems that python uses the x variable as the array's column coordinate and the y variable as the array's row coordinate instead of vice versa. The output shows that the columns and rows are flipped</p>
  <p>Here is the code:</p>
  <pre><code>tm = []
  for i in range(6):
      row = []
      for j in range(6):
          row.append(&quot; &quot;)
      tm.append(row)
  
  x = int(input(&quot;x: &quot;))
  y = int(input(&quot;y: &quot;))
  
  tm[x][y] = &quot;1&quot;
  
  for row in tm:
      print(row)
  </code></pre>
  <p>And Here's the output:</p>
  <pre><code>&gt;&gt;&gt;x: 4
  &gt;&gt;&gt;y: 5
  &gt;&gt;&gt;[' ', ' ', ' ', ' ', ' ', ' ']
     [' ', ' ', ' ', ' ', ' ', ' ']
     [' ', ' ', ' ', ' ', ' ', ' ']
     [' ', ' ', ' ', ' ', ' ', ' ']
     [' ', ' ', ' ', ' ', ' ', '1']
     [' ', ' ', ' ', ' ', ' ', ' ']
  </code></pre>
  <p>Thanks in advance to any clever person out there that can figure this out!</p>