8. ...And Seek! [Help]



Oops, try again. Your code threw the following error: invalid syntax (python, line 22)

How in the world is my syntax wrong? Doesn't seem wrong at all (I feel like this should be a very easy exercise but it's not).
I'm having issues with the code at the bottom, with the two variables, guess_col and guess_row.

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[0]) - 1)

ship_row = random_row(board)
ship_col = random_col(board)

# Add your code below!
def guess_row = int(raw_input("Guess Row: ")):
def guess_col = int(raw_input("Guess Col: ")):


Figured it out, syntax is wrong because the instructions ask to create new variables, and I got confused and thought they were asking for new functions, therefore my "def" is not needed.


please help me i cant get passed this level