I am strucked with Hide exercise of BattleShip. I have no clue of whats wrong. Please help me.
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 randit(0,len(board)-1) def random_col(board): return randit(0,len(board)-1) random_row(board) random_col(board)
It give me the error as Oops, try again. Did you create a function called random_row? and also indication that
NameError: global name 'randit' is not defined