The while condition is never true when you enter the correct password. So the 
while loop is evaluated False and is never triggered.



What you should do, as a general rule of troubleshooting, is to use print 
statements. So print the two outcomes and print the boolean evaluation

I'm assuming when it is false that it prints 'try again'  infinitely.




Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: ADRIAN KELLY <kellyadr...@hotmail.com>
Sender: tutor-bounces+eire1130=gmail....@python.org
Date: Fri, 23 Sep 2011 22:56:46 
To: <tutor@python.org>
Subject: [Tutor] password loop

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to