Finding index of the same elements in a list,[i for i in range(len(word)) if word[i] == letter]