I want to go through a 2D array in reverse. Thats is why I use reversed() but I get an error that says
list indices must be integers, not list
labirynth = [
for i in reversed(labirynth):
for j in reversed(labirynth[i]):
There is no need to access the list with
. The outer for loop already returns the list. You can just do
for i in reversed(labirynth): for j in reversed(i): # do stuf...