[Tutor] equality check difference
Chris Fuller
cfuller084 at thinkingplanet.net
Sun Apr 20 04:30:43 CEST 2014
Something I forgot to add. This idea of side-effects with the conditionals is
actually the whole point of the Python built-in functinos any() and all().
any() will evaluate a generator expression and stops when one of them
evaluates to True, and all() works the same, but stops when a False is
encountered. If you google these, you are bound to find some helpful examples
and explanations.
For example,
https://docs.python.org/2.7/howto/functional.html
Cheers
More information about the Tutor
mailing list