I am trying to make a basic tic-tac-toe game, so I need the user to input which part of the grid they would like to change into an "X" or "O" (required to use lists). The grid can be accessed using the syntax board[row][column].
board = [["1", "2", "3"],
["4", "X", "6"],
["7", "8", "9"]]
def EnterMove(board):
player_move = input("Using board[row][column] syntax, make your move: ")
if player_move in board: # program doesn't recognize the input here
board[player_move] = "O"
boardis nested list so thisif player_move in boardwill never work