Holen Sie sich alle Indizes eines Wertes in List Python
indices = [i for i, x in enumerate(my_list) if x == "whatever"]
Shaunak
indices = [i for i, x in enumerate(my_list) if x == "whatever"]
indices = list(filter(lambda x: x == 'whatever', my_list))