Link to the exercise: 8. ...And Seek.
When I click save and submit, it says: "Oops, try again. Make sure to wrap your prompts with 'int'."
This is my code:
from random import randint board =  for x in range(0,5): board.append(["O"] * 5) def print_board(board): for row in board: print " ".join(row) def random_row(board): return randint(0, len(board) - 1) def random_col(board): return randint(0, len(board) - 1) ship_row = random_row(board) ship_col = random_col(board) # Here's the problem: def guess_row(): guessrow = int(raw_input("Guess Row: ")) return guessrow def guess_col(): guesscol = int(raw_input("Guess Column: ")) return guesscol
Help would really be appreciated, and preferably not said in a condescending manner.