Python Quiz II Answer

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

I know the answers... timothyfitz October 17 2007, 09:21:47 UTC
because you stole my question! (:

Reply

Re: I know the answers... thespeedbump October 17 2007, 15:11:49 UTC
I stole your mom's question too.

Reply


Leave a comment

Up