You can use this snippet:
def change(matrix, i, j, element):
matrix[i][j] = element
return matrix
You don’t need a function to do this!
3
solved Changing the elements of double array [closed]
You can use this snippet:
def change(matrix, i, j, element):
matrix[i][j] = element
return matrix
You don’t need a function to do this!
3
solved Changing the elements of double array [closed]