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


#1



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:"))


#2

It should be input not imput


#3

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


#4

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