Stuck at Battleship _ _ _and seek!(8/19)

ship_row = random_row(board)
ship_col = random_col(board)
guess_row=int(raw_input("Guess Row:"))
guess_col=int(input("Guess Col:"))

the code runs perfectly well but the error box shows
"It looks like you are not calling the raw_input function twice."
i am not able not figure out whats wrong, please help.


Hi @pyjumper93634,

You called input instead of raw_input here …

guess_col=int(input("Guess Col:"))

With Python 2, it is almost always preferable to use raw_input rather than input.


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