NOT Able to convert O = X


Not able to convert O to X

Replace this line with your code. 
    print "You missed my battleship!"
    guess_row = "X"
    guess_col = "X"
    z = print_board(board)
    print z


Do you mean to " Set the list element at guess_row, guess_col to "X" "?


yes..can you help me with it?


So you could do:

board[guess_row][guess_col] = "X"

to set list element at guess_row and guess_col to "X".


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.