Re: [Tutor] password loop

2011-09-27 Thread Wayne Werner
On Fri, Sep 23, 2011 at 5:56 PM, ADRIAN KELLY wrote: > Can anyone help me with the programme below; i hope you can see what i am > trying to do, if i enter the wrong password the loop goes on forever and if > i enter the right one nothing is printed... > i am a newbieall comments welc

Re: [Tutor] password loop

2011-09-23 Thread Steven D'Aprano
ADRIAN KELLY wrote: Can anyone help me with the programme below; i hope you can see what i am trying to do, if i enter the wrong password the loop goes on forever and if i enter the right one nothing is printed... i am a newbieall comments welcome thanks adrian p

Re: [Tutor] password loop

2011-09-23 Thread Steve Willoughby
On 23-Sep-11 15:56, ADRIAN KELLY wrote: Can anyone help me with the programme below; i hope you can see what i am trying to do, if i enter the wrong password the loop goes on forever and if i enter the right one nothing is printed... i am a newbieall comments welcome Remember that r

Re: [Tutor] password loop

2011-09-23 Thread eire1130
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 wh