What is the most efficient way to test for False in a list?

lex alexander.somma at gmail.com
Sun Jul 8 19:43:14 EDT 2007


Of course there is the always the iteration method:

list = [1, True, True, False, False, True]
status = True
for each in list:
    status = status and each

but what is your best way to test for for False in a list?




More information about the Python-list mailing list