title: Python , nested list row and column
body: <p>My first time here.
  I permit to ask some advice on python nested list.
  I actually try to use python and pygame to make a simple grid based game.
  I want to use a list of list to hold the map where my char is moving.
  so here is my map:</p>
  
  <pre><code>basic_map=[['NW',1,1,1,'NE'],
             [1,0,0,0,1],
             [1,0,0,0,1],
             [1,0,0,0,1],
             ['SW',1,1,1,'SE']]
  </code></pre>
  
  <p>a square, four corner with direction in each.
  then i use a nested for to draw the map:</p>
  
  <pre><code>for x in range (5):
          for y in range (5):
              str3=str(basic_map[x][y])  
              text3=font.render(str3,True,white)
              screen.blit(text3,(100+40*x,100+40*y))
  </code></pre>
  
  <p>here start my problem, i don't understand why my map is displayed with inverted row and column.
  i have a solution, invert x and y when displaying, but then the movement will not be ok, since north is (x=0,y=-1) will behave as east and so on.</p>
  
  <p>i don't understand why i am stuck since one week on this basic thing.
  i have searched a lot throught internet and also asked throught IRC but have not been lucky.</p>
  
  <p>i don't ask a ready to use code but a simple explanation to understand my fault.hope you will understand what i am saying since i am not an english native.</p>
  
  <p>Thanks by advance</p>