Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Like this

def remove_zero(l1, l2):
     return [z1 for z1, z2 in zip(l1, l2) if z2]