я для я
iL = [i for (i, x) in enumerate(a) if x == -1]
Enchanting Eland
iL = [i for (i, x) in enumerate(a) if x == -1]