sum list of booleans python code example Example: number of true in a list booleans = [False, True, True, False, False] sum(booleans)