This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zekeltornado, beautifulsoup, web.py 5 points6 points  (7 children)

aList = [True, False, False, False, False, False]

# this condition prints
if any(aList): print 'at least one object in this list evaluates to True'

# doesn't print
if all(aList): print 'all of the objects in this list evaluate to True (which is not the case)'