What is the most efficient way to find the indexes of strings in a list that occur only once?
foo = ['it', 'does', 'it', 'very', 'very', 'well']
bar = ??? # bar = [1, 5]
I already know about sets, dictionaries and list comprehensions. The problem I'm trying to solve here is in my production code I have parallel data lists where the index of one is the index of many which can't be changed for historical reasons.