help on ultra newbie program please

cybernut cybernut at uswest.net
Wed May 21 17:49:08 EDT 2003


"Erik Max Francis" <max at alcyone.com> wrote in message
news:3ECBEA84.C9ED32D4 at alcyone.com...
> cybernut wrote:
>
> > So Im not sure what that is doing exactly because it doenst seem to be
> > comparing anything or checking to see if something is true or not. I
> > know it
> > works in the program, but dont understand what it is and why.
>
> I just stated what it does.
>
> if x: ...
>
> tests whether or not x is "true."  I indicated what Python considers
> false; everything else it considers true.
>
>
> -- 
>    Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
>  __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
> /  \ Scars are like memories.  We do not have them removed.
> \__/  Chmeee

Ok, gotcha thanks. I just didn't comprehend the whole true thing at first.
But now I understand and that in his code he started out with password_ok =
0 which means false. Then at the end it checks to see if it is still zero
and if it isnt zero then it is true and executes. Thanks for takin the time
to clarify...






More information about the Python-list mailing list