[Tutor] Help with a while or a for loop that only allows three tries

Danny wheelcrdan@hotmail.com
Sun Apr 13 12:38:01 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C301A8.9FC88D00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Everyone

I'm working through the ActivePython Documents. One of the exercises is =
to make a password program that exits after three tries. I'm confused =
I've tried some different things having none of them be successful.=20

Also some times I see a while loop that starts out like=20

while 1:
      =20
what does that tiring to say, only go through the loop once. Or is that =
a I if so what would you use something like that example for?
------=_NextPart_000_0005_01C301A8.9FC88D00
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 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Everyone</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm working through the ActivePython =
Documents. One=20
of the exercises is to make a password program that exits after three =
tries. I'm=20
confused I've tried some different things having none of them be =
successful.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also some times I see a while loop that =
starts out=20
like </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>while 1:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>what does that tiring to say, only go =
through the=20
loop once. Or is that a I if so what would you use something like that =
example=20
for?</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C301A8.9FC88D00--