Not again


I am getting this and I can't progress any further.

Oops, try again. Did you remember to add the "You guessed that one already." message in your elif statement?

if guess_row==ship_row and guess_col==ship_col:
    print "Congratulations! You sank my battleship!"
    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"
        print "You missed my battleship!"
        board[guess_row][guess_col] = 'X'

Problem with an elif during test run

Hi, I have the same problem ! Do you finally find the solution ?


@dinos99 you miss a full stop (.) after already.

@textpro99388 make a new topic if you need help


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