Making a treasure hunt game and for the board, I would like numbers along the top and side for coordinates of a grid, the top line will be the numbers 0-8 in a list. Here's my code:
board=[]
board.append([])
for i in range(9):
i2=str(i)
board[i].append(i2)
Although when i run it I get the error:
board[i].append(i2)
IndexError: list index out of range