...and Seek!


#1



I get this error messege with my code

Traceback (most recent call last):
File "python", line 23, in
NameError: name 'raw_imput' is not defined


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)

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

def random_col(board):
    return randint(0, len(board[0]) - 1)

ship_row = random_row(board)
ship_col = random_col(board)

# Add your code below!

guess_row = int(raw_imput("Guess Row: "))
guess_col = int(raw_imput("Guess Col: "))

Any help?


#2

Hi @textblaster35001,

On these two lines ...

guess_row = int(raw_imput("Guess Row: "))
guess_col = int(raw_imput("Guess Col: "))

... the name raw_imput is undefined. The correct name of the function that you need to call is raw_input.


#3

Thanks I just noticed the typo myself! What a stupid mistake


#4