Hide


#1



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 randit(0, len(board) - 1)
    
def random_col(board):
    return randit(0, len(board) - 1)
    
print random_row(board)
print random_col(board)

what am i doing wrong here?

i get the following error msg: Oops, try again. Did you create a function called random_row?


#2

You have written "randit" instead of "randint"


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.