Creating nested lists from a single list
Suppose I have a list like this:
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).