<DIV><FONT color=#660066>Hi I am new to this group and new to programming. I have <BR> had this interest in learning to program because.......well <BR>just because. It's just a curiosity that I have. The reason <BR> I am starting with Python, well some of the websites I went <BR> to recommended Python, so here I am. <BR> Ok on to the question.<BR> <BR> I am currently using the book "Python programming for <BR> absolute beginners" by Michael Dawson. The program I am <BR> working on is a password program....dont laugh I know it's <BR> really simple to some, but I am kinda stuck. The book shows <BR> how to code a password program like<BR> this:<BR> <BR> password = raw input("Enter your password:")<BR> <BR> if password == "secret":<BR> print "Access Granted"<BR> else:<BR> print "Access Denied"<BR> <BR> raw input("Press the enter
key to exit")<BR> <BR> Ok that is easy enough I understand what is going on here. <BR> As the book goes on it also talks about elif, and while <BR> loops. At the end of the chapter it gives various challenges <BR> that the reader is asked to complete. One of the challenges <BR> is to take the password program from above and change it so <BR> that the user gets only three attempts to enter the correct <BR> password. Well I ain't got it to work yet, I thought I came <BR> close, but no cigar. This is what I have so far: #Limiting <BR> password atempts to three<BR> <BR> password = raw input("Enter your Password: ")<BR> count = 0<BR> <BR> <BR> while password != "secret":<BR> print password = raw-input("Enter your Password: ")<BR> count += 1</FONT><BR><BR><FONT color=#660066> if password ==
"secret":<BR> print "Welcome in."<BR> <BR> <BR> elif count > 3:<BR> print "Please come back when you remember your Password."<BR> <BR> else:<BR> raw input("Press enter to exit.")</FONT></DIV>
<DIV><FONT color=#660066><BR> Ok, I know I may be way off course here but any help would be <BR> greatly appreciated. I dont want to get frustrated and say <BR> the heck with it, especially if it is something minor. <BR> Thanks in advance.<BR></DIV></FONT><p>
                <hr size=1><font face=arial size=-1>Do you Yahoo!?<br>Yahoo! Domains - <a href="http://us.rd.yahoo.com/evt=23613/*http://smallbusiness.promotions.yahoo.com/offer">Claim yours for only $14.70/year</a>