[Tutor] raw_input

Brendhan Horne brendhanhorne@yahoo.com
Wed, 20 Jun 2001 14:20:15 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0063_01C0F994.202EFC00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

>>> 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'

Okay What did I do wrong it should have printed my name after the print =
name
command.

--
Thanks,
Brendhan
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE d- s: a C++ U(++) P(++) L+(++) E- W+ N+ o+ K- w+
O+ M V? PS+ Y PGP(++) t++ 5++ X- R+++ tv++ b+++ DI++
D G(++) e+(++) h-- r++ y++*
------END GEEK CODE BLOCK------



------=_NextPart_000_0063_01C0F994.202EFC00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>&gt;&gt;&gt; raw_input ("Enter your name:")<BR>Enter =
your=20
name:Brendhan<BR>'Brendhan'<BR>&gt;&gt;&gt; print name<BR>Traceback =
(innermost=20
last):<BR>&nbsp; File "&lt;pyshell#7&gt;", line 1, in =
?<BR>&nbsp;&nbsp;&nbsp;=20
print name<BR>NameError: There is no variable named 'name'<BR><BR>Okay =
What did=20
I do wrong it should have printed my name after the print=20
name<BR>command.<BR><BR>--<BR>Thanks,<BR>Brendhan<BR>-----BEGIN GEEK =
CODE=20
BLOCK-----<BR>Version: 3.1<BR>GE d- s: a C++ U(++) P(++) L+(++) E- W+ N+ =
o+ K-=20
w+<BR>O+ M V? PS+ Y PGP(++) t++ 5++ X- R+++ tv++ b+++ DI++<BR>D G(++) =
e+(++) h--=20
r++ y++*<BR>------END GEEK CODE =
BLOCK------<BR><BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0063_01C0F994.202EFC00--


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com