Hide


#1



An error pops up displaying "Did you create a function called random_col ?"
if anyone could help by pointing out what I'm doing wrong.


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)

# Add your code below!
def random_row(board):
    return randint(0, len(board) - 1)

def random_col(board):
    return radint(0, len(board) - 1)

random_row(board)
random_col(board)


#2

i would look at the interpreter error, which is more informative

here:

return radint(0, len(board) - 1)

careful with your spelling, radint is not a defined function


#3

Ohh yeah silly mistake.
Thanks alot.


#4