Christos TZOTZIOY Georgiou wrote:

On Fri, 04 Feb 2005 13:04:16 -0500, rumours say that Steve Holden
<[EMAIL PROTECTED]> might have written:

[STeVe]

For a given list:
* If all values are None, the function should return None.
* If at least one value is True, the function should return True.
* Otherwise, the function should return False.


[Stevbe]

If you wanted to get clever you could write something like

for i in True, False:
 if i in lst:
   return i
return False


[!Steve]

You mistyped None as False in the last line.  Your typos are getting worse every
day :)

That wasn't a *type*, it was a *thinko*

regards
 Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005                      http://www.pycon.org/
Steve Holden                           http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to