Dapatkan semua indeks nilai dalam daftar 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"]