[Tutor] mnemonics to better learn Python

Alan Gauld alan.gauld at btinternet.com
Fri Jul 31 20:51:10 CEST 2009


"Eduardo Vieira" <eduardo.susan at gmail.com> wrote 


> Like in the IDLE
> 2 and 4 and 0
> Result: 0

Ah! Now I see. Its the results of short-circuit evaluation 
you want a nmemonic for, not the and/or logic itself

I agree thats much harder to figure out, you do kind 
of have to work through the tests until the first failure
for and or the first success for or.

It might be cute to have an aide d'memoire for that.


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list