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