When I originally wrote the solution to the "Hide" problem i set the functions random_row and random_col to return rr and rc respectively which worked fine. As I moved forward to the seek problem my code was reset and i was easily able to complete the step with the reset code. What I don't understand is why this code doesn't work as well? I expected to see this code pass rr and rc to ship_row and ship_col respectively without problem. Clearly it doesn't and I am not understanding why.
from random import randint board =  grid = int(raw_input("What size grid")) for x in range(0, grid): board.append(["O"] * grid) def print_board(board): for row in board: print " ".join(row) def random_row(board): rr = randint(0,len(board)-1) return rr def random_col(board): rc = randint(0,len(board)-1) return rc random_row(board) random_col(board) ship_row = rr ship_col = rc # Add your code below! guess_row=int(raw_input("Guess Row:")) guess_column=int(raw_input("Guess Column:"))