My code is working fine , just recalling back from the beginning of the game , I've got some questions
def print_board(board): for row in board: print " ".join(row)
I understand that his function removed the commas and the ' ' .. i just don't get how it managed to get them into 5 lines under each others ?
def random_row(board): return randint(0, len(board) - 1)
Here , the length is considered "5" , because the outer list contains 5 lists ?
The example above prints out "O", the element in the 3rd row and 4th column... can't get it at all
even when i tried in the code row 2 column 2 .. i get the X at the third column ,third row ..
isn't every row was originally a list inside the bigger list ?
else : print "You missed my battleship!" board[guess_row][guess_col] = "X"
how did we assign the board list 2 values in this command?
Thanks in advance <3