x=lambda lst:sum(1 for item in lst if isinstance(item,bool)and item) solution=lambda lst:x(lst)>=2
def count_true_bools(lst):return sum(1 for item in lst if isinstance(item, bool) and item)def solution(lst):return count_true_bools(lst) >= 2- x=lambda lst:sum(1 for item in lst if isinstance(item,bool)and item)
- solution=lambda lst:x(lst)>=2