my_series = [1, 3, 5, 6, 8, 9] positions = list(filter(lambda i: my_series[i] % 3 == 0, range(len(my_series)))) print(positions)