Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 3 years ago

Max Alekseyev gravatar image

It's quite straightforward:

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