First time here? Check out the FAQ!
answered 2022-03-03 02:47:49 +0100
It's quite straightforward:
[a for a in A if all(a[j]==1 for j in B)]