I\'m learning the book named Data Structures & Algorithms in Python.
On Page 12 that introduce the Logical Operators, it writes:
>>> if 1 or 0:
... print "I am learning"
...
I am learning
>>> if 1 and 0:
... print "I am learning"
...
>>> if 0:
... print "I am learning"
...
>>> if 1:
... print "I am learning"
...
I am learning
>>> if None and 1:
... print "be crazy"
...
>>> if None or 1:
... print "be crazy"
be crazy
much like C implementation.
And the last line is read correct had the first condition was unsuccessful in returning the error the second condition checks for the error