At 02:02 PM 4/11/2005, you wrote:
Send Tutor mailing list submissions to
        tutor@python.org
Hey all,

Sorry for the bother, thanks for the help....


#first of all, why does this have to be here?
password="foobar"

count=3
current_count=0

while password !="unicorn":
     if current_count<count:
         password=raw_input("Password:")
         current_count=current_count+1
     else:
         print "That must have been complicated"


print "Welcome in"

Just wondering... would breaking the loop at 3 counts work at all? Or would it screw it up?


Joe

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to