check if all lists in list `l` have three elements of integer 1,all(x.count(1) == 3 for x in L)