I have a problem, where an element appears twice in a list, but when I want the index, I only get the index of the first one.
list1=['a','b','c','a','d']
for letter in list1:
print(list1.index(letter))
But I want it to return 3 for the second 'a'. What should I do? Thanks in advance :)