def only1(l):
    true_found = False
for v in l:
    if v:
        if true_found:
            return False
else:
    true_found = True
return true_found
How can I check that a list has one and only one truthy value?