7. Hide (HELP!)



Not sure whats wrong.... run it and it comes back with:
Oops, try again. Your random_row function caused the following error: empty range for randrange() (0,0, 0)

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 randint(0, len(board) - 1)



Usually, function calls need to be assigned to something, or at least passed to something else. The above calls are happening in a vacuum.


no need to call functions random_row and random_col as of in this execrise