[Tutor] Discrepancy
kiran at mhowlinux.org
kiran at mhowlinux.org
Fri Mar 19 08:46:13 EST 2004
hi
what is the problem
> x =1
>x is 1
1
>
> (1 is 1)
1
>
>x is (1 is 1)
0
once i set x=1
x is 1 returns true(1)
(1 is 1) returns true(1)
whereas
x is (1 is 1)
returns 0
Python Version 2.2.3
Beware of the lollipop of mediocrity: lick it once and you suck forever
www.mhowlinux.org- Helping Linux users in Mhow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040319/72da1fff/attachment.html
More information about the Tutor
mailing list