Re: [Tutor] Logical Operaor

2006-04-06 Thread Brian van den Broek
Kaushal Shriyan said unto the world upon 06/04/06 08:06 AM: > Hi > > I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap04.htm > about Logical operators > > I didnot understood > > x = 5 x and 1 > > 1 > y = 0 y and 1 > > 0 > > How 5 and 1 means 1 and 0 and 1 mean

Re: [Tutor] Logical Operaor

2006-04-06 Thread Jason Keen
In python, any nonzero number is considered to mean "True". Zero is considered to be "False". The "and" logical operation evaluates to "True" only if both terms are true. On 4/6/06, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: > Hi > > I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap04.

[Tutor] Logical Operaor

2006-04-06 Thread Kaushal Shriyan
Hi I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap04.htm about Logical operators I didnot understood >>> x = 5 >>> x and 1 1 >>> y = 0 >>> y and 1 0 How 5 and 1 means 1 and 0 and 1 means 0 Thanks Regards Kaushal ___ Tutor maillist