Battle ship!-bad aim


#1

if guess_row == ship_row and guess_col == ship_col:
    print "Congratulations! You sank my battleship!"
else:
        print "You missed my battleship!"
        board[guess_row][guess_col] = "X"
        
print_board(board)     
if board[guess_row] not in range(5) or  board[guess_col] not \ in range(5)
    print "Oops,that's not even in the ocean."
else:
    print "excellent shot"

error: Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: unexpected character after line continuation character (python, line 36)
link of exrcise:
https://www.codecademy.com/courses/python-beginner-en-4XuFm/1/3?curriculum_id=4f89dab3d788890003000096


#3

who sees this can know that i solved the problem it was a little thing missed


#4

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