>>> 1 or 2 and 3 1 Why does the above expression return 1? As per my understanding of boolean operations, this is what should have happaned:
1 or 2 => 1 and then 1 and 3 => 3 The library reference also suggests that 'or' has higher priority than 'and'. http://docs.python.org/lib/boolean.html Thanks _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor