First time here? Check out the FAQ!
answered 2020-06-01 18:12:16 +0100
Like this
def remove_zero(l1, l2): return [z1 for z1, z2 in zip(l1, l2) if z2]