all index of element in list python code example Example: python index for all matches indices = list(filter(lambda x: x == 'whatever', my_list))