On Tue, 6 Mar 2007, Alan Gauld wrote:

> But I've been up since 4:30am and am too tired to try 
> figuring it out just now, so maybe someone else will 
> explain! :-)
> 
> >>> for c in 'abcd':
> ...    print (c == c in 'crab')
> ...
> True
> True
> True
> False

Trying to understand that, I tried this, which left me even more 
confused:

>>> for c in "abcd":
...    print (c == c in "crab"), (c == (c in "crab"))
...
True False
True False
True False
False False

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to