Stuck on Hide with no clue what's wrong


Hey guys, I have no clue what is wrong after looking at others help questions.

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

The error I get:
Traceback (most recent call last):
File "python", line 20, in
File "python", line 15, in random_row
NameError: global name 'radint' is not defined


you misspelled randint


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