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”
specifically, why, in the elif statement, the parentheses?
i wouldn’t use parentheses in the elif statement, they don’t add any value
Agreed, but that was the solution it gave when my code was not correct. Everything else I did matched except for those parentheses.
i would need to see the code which didn’t pass to understand why it didn’t pass