First time here? Check out the FAQ!
answered 4 years ago
Like this
def remove_zero(l1, l2): return [z1 for z1, z2 in zip(l1, l2) if z2]