Here is my current code:
row1 = ["","",""]
row2 = ["","",""]
row3 = ["","",""]
def gameTime ()
print ( row1[0], row1[1], row1[2] )
print ( row2[0], row2[1], row2[2] )
print ( row3[0], row3[1], row3[2] )
while True:
player1Row = input ( "Select a row: " )
player1Column = input ( "Select a column: " )
if player1Row == 1 and player1Column == 1:
if row1[0] !="X" and row1[0] !="O":
row1 [0] = "X"
gameTime ()
I have attempted a few different strategies to replace the list index item [0] using .append() or even .remove() then .append() similarly to no avail. I feel like I am missing something because it works if I place value to the list items as 0,1,2 rather than "" but I wish to do it the way I have right now in order to complete the game. Any suggestions are appreciated. Thank you for your time!