[Tutor] raw_input
Bob Rea
rear@sirius.com
Wed, 20 Jun 2001 17:53:27 -0700
On Wednesday 20 June 2001 11:20 am, you wrote:
> > >>> raw_input ("Enter your name:")
>
> Enter your name:Brendhan
> 'Brendhan'
>
> >>> print name
>
> Traceback (innermost last):
> File "<pyshell#7>", line 1, in ?
> print name
> NameError: There is no variable named 'name'
You need to assign the raw_input to a variable
name = raw_input ("Enter your name:")
etc
--
Bob Rea
Fear of Hell is pernicious;
So is fear of Heaven.
rear@sirius.com http://www.sirius.com/~rear