Python выберите из списка по логическому списку
filtered_list = [i for (i, v) in zip(list_a, filter) if v] # filter is a list of booleans
Tough Tuatara
filtered_list = [i for (i, v) in zip(list_a, filter) if v] # filter is a list of booleans