python get all the values in list by index code example
Example: get all indices of a value in list python
indices = [i for i, x in enumerate(my_list) if x == "whatever"]
indices = [i for i, x in enumerate(my_list) if x == "whatever"]