7.Hide...What I am doing wrong in my code?


#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 randint(0,len(board)-1)
    
def random_col(board):
    return randint(0, len(board)-1)

#2

As far as I can tell, there is a space in between your function (def random_ row (board):). So, close the gap inbetween random_row and (board).