Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It's quite straightforward:

[a for a in A if all(a[j]==1 for j in B)]