help on ultra newbie program please
Erik Max Francis
max at alcyone.com
Wed May 21 17:07:16 EDT 2003
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
More information about the Python-list
mailing list