How can I get input and raw_imput functions to work in Python?
Question: Whenever I use input and raw_imput in Python, it gives me an error report.
Such as in the simple number guessing game. This is what happens:

    
    
    >>> import random
    >>> number= random.randint(1,100)
    >>> guess= input("guess a number. ")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    NameError: name 'input' is not defined
    

The same thing happens when I use raw_input. Does anyone know what's going on?


Answer: "imput" is not a standard function in Python. Spell it like "input".

