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