Oct 16, 2007 21:24
The phenomenon shown in my previous post is also demonstrated with this snippet:
print 2 in [] == FalseBelieve it or not, but this expression is equivalent to
print 2 in [] and [] == FalseThis is the same syntactic mechanism that, believe it or not, allows you to write expressions like "5 > 6 > 7" in Python.
Leave a comment
Comments 2
Reply
Reply
Leave a comment