I need to take action when pole[i][j] == 1, but it throws an error:
TypeError: list indices must be integers or slices, not list
pole = [[0,1,0],
[1,0,1],
[0,1,1]]
for i in pole:
for j in pole:
if pole[i][j] == 1:
my_code()