I am wondering why to indent
board[guess_row][guess_col] = "X" and
print_board(board) to print?
It should work without indenting too?. On the 11th lesson i had not indented it but why here?.
if guess_row == guess_col: print "Congratulations! You sank my battleship!" else : if guess_row not in range(5) or guess_col not in range(5): print "Oops, that's not even in the ocean." else: print "You missed my battleship!" board[guess_row][guess_col] = "X" # Why this two lines to be indented?. print_board(board)
Any help is greatly appreciated.