[Tutor] Newbie Question

Billie bjmartin98@pennswoods.net
Tue, 23 Jul 2002 20:18:19 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C23286.15C16EC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am learning Python with the tutorial for non-programmers.

We are asked to write a program to keep track of how many times the user =
has entered the password wrong.  If more than 3 times, print "That must =
have been complicated"

How do you count a string statement?  Everything I've tried asks for =
integers.  I feel really stupid because I can't work this out.

password =3D "foobar"


------=_NextPart_000_000C_01C23286.15C16EC0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am learning Python with the tutorial =
for=20
non-programmers.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>We are asked to write a program to keep =
track of=20
how many times the user has entered the password wrong.&nbsp; If more =
than 3=20
times, print "That must have been complicated"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How do you count a string =
statement?&nbsp;=20
Everything I've tried asks for integers.&nbsp; I feel really stupid =
because I=20
can't work this out.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>password =3D "foobar"</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000C_01C23286.15C16EC0--