7. Hide (HELP!)


#1



https://www.codecademy.com/courses/python-beginner-en-4XuFm/0/7?curriculum_id=4f89dab3d788890003000096#


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)

random_row(board)
random_col(board)


#2

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


#3

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


#6