[Tutor] Need some clarification on this
joel.goldstick at gmail.com
Sat Mar 19 15:54:49 CET 2011
2011/3/19 Yaşar Arabacı <yasar11732 at gmail.com>
> >>>a == b
> >>>a is b
> My question is, why "a is b" is true. What I expected it to be is that, a
> and b are different things with same value.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
True means not zero, not "". Any numeric value but 0 is true. so you have
True and True.
I think what you are thinking of would be a == b. Since a does not equal b,
the result is False
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor