Stuck on Hide with no clue what's wrong


#1

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)
print_board(board)
# Add your code below!

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

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


#2

you misspelled randint


#3

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