find all values in list code example Example: find all element in list python indices = [i for i, x in enumerate(my_list) if x == "whatever"]