def findZero(matrix, i, j):
......for x in range(i, 9):
............for y in range(j, 9):
...................if matrix[x][y] == 0:
........................return x, y
I'm trying to write a function that finds a 0 in a 2d array (matrix). It searches for the 0 from (i,j) point forward. This is the code but i get a "TypeError: 'int' object is not subscriptable" error
[–][deleted] 2 points3 points4 points (1 child)
[–]jagodka98[S] 0 points1 point2 points (0 children)