Danger, Will Robinson! Final Output


#1

if guess_row == ship_row and guess_col == ship_col:
print "Congratulations! You sank my battleship!"
else:
"You missed my battleship!"
board[guess_row][guess_col] = "X"
print_board(board)

Well, this is my code.

Output:
O O O O O
O O O O O
O O O O O
O O O O O
O O O O O
Guess Row: 0
Guess Col: 1
1
4
O X O O O
O O O O O
O O O O O
O O O O O
O O O O O
None

Error:
Oops, try again.
It looks like your game does not print "You missed my battleship!" when the guess is wrong.

Why it is showing like this ? help me. Thanks


#2

print "You missed my battleship", you are not using print before string