[Tutor] Help

Daniel W Wobker dandare@micoks.net
Sat, 8 Jul 2000 18:08:17 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01BFE907.7F8C3080
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Can someone tell me why I am getting an error on this line of code. The =
totural says it will work but it dose not on my computer.

>>> string.strip('str') + 'ing'=20
Traceback(innermost last):
  File "<interactive input>", line 1, in ?
NameError: string

Thanks=20
Dan

------=_NextPart_000_0007_01BFE907.7F8C3080
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.3018.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Can someone tell me why I am getting an error on =
this line of=20
code. The totural says it will work but it dose not on my =
computer.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>&gt;&gt;&gt; string.strip('str') + 'ing' =
</FONT></DIV>
<DIV><FONT size=3D2>Traceback(innermost last):<BR>&nbsp; File =
"&lt;interactive=20
input&gt;", line 1, in ?<BR>NameError: string<BR></FONT></DIV>
<DIV><FONT size=3D2>Thanks </FONT></DIV>
<DIV><FONT size=3D2>Dan</DIV></FONT></BODY></HTML>

------=_NextPart_000_0007_01BFE907.7F8C3080--