NOT Able to convert O = X


#1


https://www.codecademy.com/courses/python-beginner-en-4XuFm/1/2?curriculum_id=4f89dab3d788890003000096#

Not able to convert O to X


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


#2

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


#3

yes..can you help me with it?


#4

So you could do:

board[guess_row][guess_col] = "X"

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


#5

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