[Tutor] Python totorial problems.....

Daniel W Wobker dandare@micoks.net
Sun, 30 Jan 2000 22:25:56 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0033_01BF6B70.FAC22580
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello, I am using the Python Tutorial Release 1.5.2 When I get to page 9 =
chapter 3 it tells me to type in in interactive mode
>>> tax =3D 17.5 / 100
>>> price =3D 3.50
>>> price * tax=20
which should return
0.6125=20
and it dose but the problem is when it tells me to type in:
>>> price + _
I get an error message..... here is the hole thing...
>>> tax =3D 17.5 / 100

>>> price =3D 3.50

>>> price * tax

0.6125

>>> price + _

Traceback (innermost last):

File "<interactive input>", line 0, in ?

NameError: _

>>> round(_,2)

Traceback (innermost last):

File "<interactive input>", line 0, in ?

NameError: _

>>>=20

I am using Windows95 and PythonWin build 125 and Python5.

has there been a change sence the totorial has been built or is there =
somthing I have done wrong or is someone else getting the same =
problem..?

thanks in advance

Daniel W.




------=_NextPart_000_0033_01BF6B70.FAC22580
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.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hello, I am using the Python Tutorial Release 1.5.2 =
When I get=20
to page 9 chapter 3 it tells me to type in in interactive =
mode</FONT></DIV>
<DIV><FONT size=3D2>&gt;&gt;&gt; tax =3D 17.5 / 100</FONT></DIV>
<DIV><FONT size=3D2>&gt;&gt;&gt; price =3D 3.50</FONT></DIV>
<DIV><FONT size=3D2>&gt;&gt;&gt; price * tax </FONT></DIV>
<DIV><FONT size=3D2>which should return</FONT></DIV>
<DIV><FONT size=3D2>0.6125 </FONT></DIV>
<DIV><FONT size=3D2>and it dose but the problem is when it tells me to =
type=20
in:</FONT></DIV>
<DIV><FONT size=3D2>&gt;&gt;&gt; price + _</FONT></DIV>
<DIV><FONT size=3D2>I get an error message..... here is the hole=20
thing...</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DCourier size=3D2>
<P>&gt;&gt;&gt; tax =3D 17.5 / 100</P>
<P>&gt;&gt;&gt; price =3D 3.50</P>
<P>&gt;&gt;&gt; price * tax</P>
<P>0.6125</P>
<P>&gt;&gt;&gt; price + _</P></FONT><FONT color=3D#ff0000 face=3DCourier =
size=3D2>
<P>Traceback (innermost last):</P>
<P>File "&lt;interactive input&gt;", line 0, in ?</P>
<P>NameError: _</P></FONT><FONT color=3D#000000 face=3DCourier size=3D2>
<P>&gt;&gt;&gt; round(_,2)</P></FONT><FONT color=3D#ff0000 =
face=3DCourier size=3D2>
<P>Traceback (innermost last):</P>
<P>File "&lt;interactive input&gt;", line 0, in ?</P>
<P>NameError: _</P></FONT><FONT color=3D#000000 face=3DCourier size=3D2>
<P>&gt;&gt;&gt; </P>
<P>I am using Windows95 and PythonWin build 125 and Python5.</P>
<P>has there been a change sence the totorial has been built or is there =

somthing I have done wrong or is someone else getting the same =
problem..?</P>
<P>thanks in advance</P>
<P>Daniel W.</P>
<P>&nbsp;</P></FONT></DIV></BODY></HTML>

------=_NextPart_000_0033_01BF6B70.FAC22580--