python get index of all x in list code example
Example 1: how to find item in list python without indexnig
>>> ["foo", "bar", "baz"].index("bar")
1
Example 2: python index for all matches
indices = list(filter(lambda x: x == 'whatever', my_list))