[Tutor] using 'and ' and 'or' with integers
Alan Gauld
alan.gauld at btinternet.com
Wed Jan 9 09:53:48 CET 2013
On 09/01/13 06:56, ken brockman wrote:
> 1 and 2 and 3
> answer 3
> I've goggled it till i was red in the fingers, but to no avail.. Could
> someone be kind enuff to direct me to some docs that explain this?? I've
> no clue what the hell is going on here..
Its to do with the way Python evaluates booleans using short circuit
evaluation.
There is a short section in my tutorial under the "Functional
Propgramming" topic, in the 'other contructs heading about half way down.
HTH,
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list