[Tutor] Python Programming exercise

Emile van Sebille emile at fenx.com
Wed Jul 1 18:19:16 CEST 2009


On 6/30/2009 7:53 PM Daniel Sato said...
> I have been able to make the module quit after entering a password three 
> times, but can't get it to quit right away after the correct one is 
> entered.  I know this is really basic, please forgive me.  I have no 
> programming experience and have just started going through these tutorials.
> 
> My code is here:
> 
> http://python.pastebin.com/m6036b52e

First, paste your code into a python command window.  You'll get errors, 
but clean them up.  Second, code blocks that are indented alike execute 
as part of the same block.  Take a look where you increment count.

HTH,

Emile



More information about the Tutor mailing list