Python SELECT DARI DAFTAR OLEH BOOLEAN

filtered_list = [i for (i, v) in zip(list_a, filter) if v] # filter is a list of booleans
Tough Tuatara