Not again


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

if guess_row == ship_row and guess_col == ship_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."
  	elif board[guess_row][guess_col] == "X":
    		print "You guessed that one already."
		else:
  				print "You missed my battleship!"
  				board[guess_row][guess_col] = "X"
  				print_board(board)

<In what way does your code behave incorrectly? Include ALL error messages.>

this is my code which should run, but it’sgive indentation error after/ at “X”
<What do you expect to happen instead?>

```python

Replace this line with your code.

<do not remove the three backticks above>

#2

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