[Tutor] all elements equal in tuple or list
Brian van den Broek
bvande at po-box.mcgill.ca
Fri Nov 19 16:36:16 CET 2004
Dick Moores said unto the world upon 2004-11-19 08:59:
> I've been unable to find this. Could you give the URL for the page? I
> figure there must be more good stuff near there..
> Bob Gailer wrote at 22:45 11/18/2004:
>> To be more explicit (quoting from the manual) "when expressions are
>> used by control flow statements, the following values are interpreted
>> as false: None, numeric zero of all types, empty sequences (strings,
>> tuples and lists), and empty mappings (dictionaries). All other values
>> are interpreted as true."
> Tutor maillist - Tutor at python.org
Since that isn't too readable, that's the result of typing:
site:www.python.org "when expressions are used by control flow statements"
into google's search box.
More information about the Tutor