[Tutor] Thanks-finally got it to work
brian illingworth
blugerz at yahoo.com
Sun May 23 13:27:57 EDT 2004
Thanks for everyones help I finally got it to work:
#Limiting password atempts to three
count = 1
password = ""
while not password and count < 3:
password = raw_input("Please enter your Password:
")
count += 1
if password == "secret":
print "Welcome in."
elif raw_input("Please enter your Password: "):
count += 1
else:
count == 3
print "Try again later when you remember your
password."
raw_input("Press enter to exit.")
It may not be the perfect way, but it is finally doing
what I want it to. Time to move on to the next one,
and I am sure I will have more questions.
__________________________________
Do you Yahoo!?
Yahoo! Domains Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
More information about the Tutor
mailing list