7. Hide .. why?


7. Hide...

error message : ops! did you create a function called random_row?

I did created it and called it later. . I don't know why it doesn't go

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_col(board):
    return randit(0,len(board)-1)

def random_row(board):
    return randit(0,len(board) -1)


Spelling error. return randint( ... )


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