"Sathyaish" wrote: > I) What does the following expression evaluate to? > > a < b == c > > 1) (a < b) and (b == c) > 2) (a < b) or (b == c)
http://docs.python.org/ref/comparisons.html
Formally, if a, b, c, ..., y, z are expressions and opa, opb, ...,
opy are comparison operators, then a opa b opb c ...y opy z
is equivalent to a opa b and b opb c and ... y opy z, except
that each expression is evaluated at most once.
</F>
--
http://mail.python.org/mailman/listinfo/python-list
