8/19 "...and Seek" raw imput not defined


I am trying to create the user interaction. The lesson says I should be able to imput two numbers but instead I get this error:

Oops, try again. Your code threw the following error: name 'raw_imput' is not defined

Here is the code:

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)
#everything above this has been right so far.
#It is the following that is the issue.
guess_row = int(raw_imput("Guess Row:"))
guess_col = int(raw_imput("Guess Col:"))


It should be input not imput


Ah, that's such a stupid mistake. Thank you for catching it!


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