Relative Content

Tag Archive for python-3.xindexingnested-lists

Python – Finding Index of a 2D Array (or Nested List)

I am putting together a terminal-based RPG where the map is 2D. Presently, I am attempting to find the index of the player’s position, which I will later use to move said player either north/south/east/west (based on the player’s action).